Changes

From SME Server
Jump to navigationJump to search
138 bytes added ,  13:30, 23 September 2014
m
no edit summary
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"
+
  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 ommit 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.
 +
 
 +
 
 +
The second argument '-H unix:///var/run/docker.sock' will tell Docker where to find it's socket to bind.
 +
 
 +
 
    
It is ''important'' that you make this change 'before' you start using docker otherwise it will create it's default storage location in /var/lib/docker.
 
It is ''important'' that you make this change 'before' you start using docker otherwise it will create it's default storage location in /var/lib/docker.

Navigation menu