出现Error response from daemon: Container xx is not running的解决方法
查看容器的列表时,查看其id,并且想进入id,提示还没有启动该id
查看docker ps 的时候 显示还没有启动成功
所以要想进入该容器
第一步是先启动成功,运行容器就可以了:docker start 容器id,这是最简单的
- gaokaoli@kkjz-ThinkStation-P330:~$ docker exec -it de4e3ddc6f6c /bin/bash
- Error response from daemon: Container de4e3ddc6f6c75f315653e1969d57f29aadd96a41cdc029b0a4483dd20440752 is not running
所以要想进入该容器
第一步是先启动成功,运行容器就可以了:docker start 容器id,这是最简单的
- gaokaoli@kkjz-ThinkStation-P330:~$ sudo docker exec -it de4e3ddc6f6c /bin/bash
- Error response from daemon: Container de4e3ddc6f6c75f315653e1969d57f29aadd96a41cdc029b0a4483dd20440752 is not running
- gaokaoli@kkjz-ThinkStation-P330:~$ docker start de4e3ddc6f6c
- de4e3ddc6f6c
- gaokaoli@kkjz-ThinkStation-P330:~$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- de4e3ddc6f6c rabbitmq "docker-entrypoint.s…" 4 weeks ago Up 4 seconds 4369/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp rabbit