docker pull 镜像:版本 拉去镜像
docker images 查看本地已有的镜像
docker ps 查看正在运行的容器
docker rmi -f 镜像id 删除镜像
docker stop 容器id 停止容器
docker rm 容器id 删除容器 (删除容器需要先stop才能rm)
docker system prune -a 清除没运行的容器和 未被使用的本地镜像
启动portainer容器
docker run -p 9000:9000 --name portainer -v /var/run/docker.sock:/var/run/docker.sock -d portainer/portainer:latest
docker exec -it 容器id /bin/bash 进入容器的交互模式
exit 退出容器交互模式
docker stats 查看cpu的运行状态