Hawken.im

2021-05-18

Dive into Docker - Not every image is using the bash shell

Try to get into the shawdowsocks container created by docker.

Found this command:

docker exec -it bash

It didn’t work. And I found this:

https://mkyong.com/docker/docker-exec-bash-executable-file-not-found-in-path/

Noticed not every image is using the bash shell.

Then tried this:

docker exec -it sh

It actually worked.

Share
Newer
test
Older
After I figured out docker, I use this tutorial for installing shadowsocks on my server

Archives

  • November 2022
  • July 2022
  • June 2022
  • March 2022
  • February 2022
  • January 2022
  • November 2021
  • August 2021
  • July 2021
  • May 2021
  • January 2021
  • March 2020
  • December 2019
  • November 2019

Recent Posts

  • Meta 大裁员 他的元宇宙失败了吗?
  • 记录 postgre 的小坑一枚
  • 买了最便宜的主机内存不足很多进程会被Kill
  • 本地写 Hexo Markdown 发到 GitPress 和自己的 blog
  • 把kindle的书全部下载到电脑上!
© 2024 Hawken
Powered by Hexo
Home About Projects Archives