Docker基本操作应用
镜像
docker pull centos:7   #获取centos7镜像
docker images        #查看本地镜像
docker rmi centos:7  # 删除本地镜像,可以-f 强制删除
docker search centos   # 搜索centos镜像
docker built -t centos:7 .  #dockerfile打包镜像 . 代表当前dockerfile目录
docker commit centos7 centos:7.1   #commit打包镜像容器
创建容器
docker run -itd --name centos7 centos:7进入容器
仓库