Changes

From SME Server
Jump to navigationJump to search
227 bytes removed ,  17:47, 9 October 2014
m
Line 61: Line 61:  
Then we can install Docker and it's dependencies:
 
Then we can install Docker and it's dependencies:
 
  yum install docker-io --enablerepo=epel
 
  yum install docker-io --enablerepo=epel
 +
 +
 
Make the Docker service start at boot time:
 
Make the Docker service start at boot time:
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S95docker
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S95docker
Line 66: Line 68:  
  config set docker service
 
  config set docker service
 
  config setprop docker status enabled
 
  config setprop docker status enabled
and eventually we can start the Docker service:
  −
service docker start
  −
and then
  −
docker
  −
to see the available command line options. But first and foremost read the [https://docs.docker.com/userguide/ excellent Docker documentation]
        Line 83: Line 80:  
By default Docker will store all images, containers and other data in:
 
By default Docker will store all images, containers and other data in:
 
  /var/lib/docker
 
  /var/lib/docker
 +
 
For SME Server this is not ideal for we would like to incorporate all Docker data into the pre-defined backup procedure(s) that come with SME Server. The preferred location for Docker data would be:
 
For SME Server this is not ideal for we would like to incorporate all Docker data into the pre-defined backup procedure(s) that come with SME Server. The preferred location for Docker data would be:
 
  '''/home/e-smith/files/docker'''
 
  '''/home/e-smith/files/docker'''
 +
 
We want this to be the default location for all Docker data on SME Server, so we add the '-g' argument and the desired path to the storage location to the docker configuration file like this:
 
We want this to be the default location for all Docker data on SME Server, so we add the '-g' argument and the desired path to the storage location to the docker configuration file like this:
  

Navigation menu