1. 列出所有容器:
docker ps -a
注意: container id
2. 关闭容器:
docker stop 容器id
3. 启动容器:
docker start 容器id
4. 重启容器:
docker restart 容器id
5. 进入容器:
docker exec -it 容器id /bin/bash
标签:bin,容器,container,ps,收集整理,命令,docker,id
来源: https://blog.csdn.net/zhangyingchengqi/article/details/104834439