Changes

From SME Server
Jump to navigationJump to search
No change in size ,  17:32, 9 October 2014
m
Line 92: Line 92:  
  # to the arguments list passed to docker -d
 
  # to the arguments list passed to docker -d
 
   
 
   
  other_args="-g /home/e-smith/files/docker-H unix:///var/run/docker.sock"
+
  other_args="-g /home/e-smith/files/docker -H unix:///var/run/docker.sock"
 
Since the Docker service will always check this configuration file upon (re)start, it will automatically pick up the arguments you have provided and act accordingly. That also implies that you can have multiple (but ''not'' simultaneously) storage locations if you omit the configuration file and add arguments manually on the command line.
 
Since the Docker service will always check this configuration file upon (re)start, it will automatically pick up the arguments you have provided and act accordingly. That also implies that you can have multiple (but ''not'' simultaneously) storage locations if you omit the configuration file and add arguments manually on the command line.
   Line 108: Line 108:     
Since we already started the Docker service once (see above installation), Docker will have created it's default storage location in /var/lib/docker. However, Docker will re-create a new storage wherever you point the -g argument to, so after we have added /home/e-smith/files/docker to the Docker configuration file and restarted the Docker service, we can safely remove /var/lib/docker. This also explains why it might take a while for the Docker service to (re)start while it creates a new storage location.
 
Since we already started the Docker service once (see above installation), Docker will have created it's default storage location in /var/lib/docker. However, Docker will re-create a new storage wherever you point the -g argument to, so after we have added /home/e-smith/files/docker to the Docker configuration file and restarted the Docker service, we can safely remove /var/lib/docker. This also explains why it might take a while for the Docker service to (re)start while it creates a new storage location.
      
==Using a Docker image==
 
==Using a Docker image==

Navigation menu