Docker常用命令
0.启动docker
systemctl start docker
1.查看本地image
docker images
2.停止container
docker stop container_id
停止所有container: docker stop $(docker ps -q)
3.删除container
docker rm container_id
删除所有已经停止的container: docker rm $(docker ps -a -q)
删除所有container: docker rm -f $(docker ps -a -q)
4. 进入container
docker exec -it container_id bash
5. 运行image并进入
docker run -it image_name bash
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/