docker import and export images

ddd

 docker export import image;

 1. Mirror export and import:

    1) docker images to query the id of the image

     2) docker save 1091 > docker.io_ipenjdk8.tar to export the compressed image

     3) docker load < docker.io_ipenjdk8.tar import

        docker tag 1091 docker.io/openjdk:8-jre 改tag

 2. Export of the container

   1) docker ps query running containers

   2) docker export 89a6 > tomcat.tar export and compress it into an image;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326358094&siteId=291194637