- 下载保存
docker save -o 指定地址和文件名 镜像名
例:docker save -o /opt/test/nginx.tar 172.21.71.8/ljt/nginx-text01:latest
- 标签修改
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
例:docker tag nginx:latest 172.21.71.8/ljt/nginx-text01
作用:Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
- 镜像推送
docker push [OPTIONS] NAME[:TAG]
例:docker push 172.21.71.8/ljt/nginx-text01:1.1
- 本地文件打包镜像
docker build [OPTIONS] PATH | URL | -
(/opt/test )dockerfile的地址
docker build -t test:0.1 /opt/test