我试图运行this docker example.但似乎我不能启动码头容器.
sudo docker stop aff28c5dab3f
sudo docker start aff28c5dab3f
sudo docker ps
ID IMAGE COMMAND CREATED STATUS PORTS
sudo docker ps -a
ID IMAGE COMMAND CREATED STATUS PORTS
aff28c5dab3f shykes/pybuilder:latest /usr/local/bin/build 26 minutes ago Exit 0
52200b5c58a6 shykes/pybuilder:latest /usr/local/bin/build 10 hours ago Exit 0
b59e84340a7c ubuntu:12.04 echo hello 11 hours ago Exit 0
5c1bd5bc53d6 ubuntu:12.04 echo hello 12 hours ago Exit 0
当我尝试运行
sudo docker附加aff28c5dab36,我看到不可能附加到一个停止的容器,先启动它
最佳答案
我忘了附加到容器,因此得到错误.我运行sudo docker附加aff28c5dab36,现在一切正常.