我正在尝试运行这个docker示例。但是似乎我无法启动我的docker容器。
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 attach aff28c5dab36
时,我会看到Impossible to attach to a stopped container, start it first
错误提示。
sudo docker attach aff28c5dab36
- Rose PerroneYou cannot attach to a stopped container, start it first
- ePascoal