今天下午尝试在Ubuntu18 使用sudo docker exec -it dc0b8b529e8 /bin/bash, 结果一串错误
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown
解决方案:使用sudo docker exec -it dc0b8b529e8 /bin/sh
总结centos可以正常使用bash, 我也不知道为什么Ubuntu要独树一帜只认sh.