Changes

From SME Server
Jump to navigationJump to search
571 bytes added ,  14:59, 11 September 2014
m
no edit summary
Line 87: Line 87:  
  other_args="-g /home/e-smith/files/docker"
 
  other_args="-g /home/e-smith/files/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.
 
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.
 +
 +
Once the above change has been made, the Docker service needs to be restarted and Docker will create it's new storage layout in /home/e-smith/files/docker.
 +
service docker restart
 +
 
You can still change the storage location in a later stage by copying all data to the new location you've defined with the -g argument.
 
You can still change the storage location in a later stage by copying all data to the new location you've defined with the -g argument.
 +
 +
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
     

Navigation menu