查看所有的镜像:
docker images
查看所有的容器:
docker ps -a
查看正在运行的容器:
docker ps
移除容器:
docker rm -f 容器id
移除镜像:
docker rmi 镜像id
启动docker
systemctl start docker
停止正在运行的容器:
docker stop 容器id
进入容器里面:
docker exec -i -t 容器名字 /bin/bash
退出容器
exit
查看docker容器映射端口
docker port 容器id