docker系列(一):docker命令
docker 常用命令
docker 命令 --help
镜像命令
- docker images --help
 - docker search python 搜索镜像
 - docker search python --filter=stars=50
 - docker pull 下载镜像
 - docker pull mysql 不指定版本的话就下载最新版
 - docker pull docker.io/library/mysql:latest 与上一句等价
 - docker rmi 删除镜像
 - docker rmi -f 镜像id
 
容器命令
说明:有镜像才能创建容器
- docker run [OPTIONS] IMAGE 新建容器并启动
![image]()
启动并进入容器 centos
![image]()
exit 容器停止并退出容器
![image]()
 - docker ps -ap 列出所有容器id(无论是否运行)
 
                    
                


                
            
        
浙公网安备 33010602011771号