Changes

From SME Server
Jump to navigationJump to search
8 bytes added ,  10:58, 16 September 2014
m
Line 143: Line 143:  
  docker images
 
  docker images
 
will result in (example):
 
will result in (example):
  [root@sme9 ~]# docker images REPOSITORY                TAG                IMAGE ID            CREATED            VIRTUAL SIZE sme9                      6.5                55db4355a2de        46 minutes ago      854.7 MB leszekk/centos_minimalcd  6.5                bc56fa8f1204        8 months ago        452.6 MBto get a copy of our sme9 image and save it as 'copyofsme9 you need to enter the following command: docker save sme9:6.5 > /tmp/copyofsme9.tarwhich will result in a copyofsme9.tar file in your /tmp directory of your local server. You can now copy/move this file to another server or simply archive it for later usage.
+
  [root@sme9 ~]# docker images
 
+
REPOSITORY                TAG                IMAGE ID            CREATED            VIRTUAL SIZE
To use the copyofsme9.tar file on another server and use it on that server with Docker, we can load it into the repository of the new server: docker load < /downloads/copyofsme9.tarAfter Docker has loaded the file, you can check it's availability by executing: docker imagesand you can use it just like any other image on your new server. You can use the ''save'' and ''load'' commands to clean up your local repository and share copies of your image. 
+
sme9                      6.5                55db4355a2de        46 minutes ago      854.7 MB
 +
leszekk/centos_minimalcd  6.5                bc56fa8f1204        8 months ago        452.6 MB
 +
To create a copy of our sme9 image and save it as 'copyofsme9 you need to enter the following command:
 +
docker save sme9:6.5 > /tmp/copyofsme9.tar
 +
which will result in a copyofsme9.tar file in your /tmp directory of your local server. You can now copy/move this file to another server or simply archive it for later usage.
    +
To use the copyofsme9.tar file on another server and use it on that server with Docker, we can load it into the repository of the new server:
 +
docker load < /downloads/copyofsme9.tar
 +
After Docker has loaded the file, you can check it's availability by executing: docker imagesand you can use it just like any other image on your new server. You can use the ''save'' and ''load'' commands to clean up your local repository and share copies of your image.
    
===Docker networking===
 
===Docker networking===

Navigation menu