docker modify the image and save the image file name

1, modify the image name

[root@localhost ~]# docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
absolutapps/oracle-12c-ee   latest              ad9bdfc002e7        3 years ago         6.12GB
[root@localhost ~]# docker tag ad9bdfc002e7 oracle-12c-ee:latest
[root@localhost ~]# docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
absolutapps/oracle-12c-ee   latest              ad9bdfc002e7        3 years ago         6.12GB
oracle-12c-ee               latest              ad9bdfc002e7        3 years ago         6.12GB

2, image storage, image transfer to facilitate

docker save ad9bdfc002e7 -o /home/docker_oracle-12c-ee.tar

 

Guess you like

Origin www.cnblogs.com/mingfan/p/12331582.html