查看docker镜像
:::color1 docker image ls
:::
docker 拉取镜像
:::color1 docker image pull nginx:latest
:::
docker 拉取指定镜像
:::color1 docker image pull nginx:1.20.0
:::
docker 构建镜像(名字为user的镜像)
:::color1 docker image build -t user:latest .
:::
docker 构建镜像指定使用那个dockerfile文件(名字为user的镜像)
:::color1 docker image build -t user:latest -f mydockerfile .
:::
docker 镜像的导出
:::color1 docker image save nginx:latest -o nginx.image
:::
镜像的导入
:::color1 docker image load -i .\nginx.image
:::
构建docker镜像命令
:::color1 docker image build -t hello .
:::
删除docker镜像
:::color1
docker image rm
:::
删除所有docker镜像
:::color1 docker system prune -f
:::