Changes between Version 8 and Version 9 of Docker HowTo Auto Start Containers On Reboot


Ignore:
Timestamp:
10/06/16 15:11:58 (8 years ago)
Author:
saj.issa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docker HowTo Auto Start Containers On Reboot

    v8 v9  
    1919This will list out all the services that are enabled.
    2020
    21 3a. To create a new service called '''docker-[containername].service''' :
     213. To create a new service called '''docker-[containername].service''' :
    2222
    2323   {{{sudo vi /etc/systemd/system/docker-[containername].service}}}
     
    4949   {{{WantedBy=default.target}}}
    5050
    51 3b. If you have a new container build modify the content of this file.
     514. If you have a new container build modify the content of this file.
    5252
    53 4. To activate the service run the following commands (rename service name) :
     535. To activate the service run the following commands (rename service name) :
    5454
    5555   {{{systemctl daemon-reload}}}
     
    5959   {{{systemctl enable docker-redcap_5.7.0.service}}}
    6060
    61 5. To disable a service run the following commands (rename service name) :
     616. To disable a service run the following commands (rename service name) :
    6262
    6363   {{{systemctl stop docker-redcap_5.7.0.service}}}