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


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

--

Legend:

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

    v7 v8  
    2323   {{{sudo vi /etc/systemd/system/docker-[containername].service}}}
    2424
    25 add the contents similar to the following but change {{{Description ExecStart ExecStop}}} :
     25add the contents similar to the following, but change {{{Description ExecStart ExecStop}}} :
    2626
    2727   {{{[Unit]}}}
     
    4949   {{{WantedBy=default.target}}}
    5050
    51 3b. To amend
     513b. If you have a new container build modify the content of this file.
    5252
    53 Run the following :
     534. To activate the service run the following commands (rename service name) :
    5454
    5555   {{{systemctl daemon-reload}}}
     
    5858
    5959   {{{systemctl enable docker-redcap_5.7.0.service}}}
     60
     615. To disable a service run the following commands (rename service name) :
     62
     63   {{{systemctl stop docker-redcap_5.7.0.service}}}
     64
     65   {{{systemctl disable docker-redcap_5.7.0.service}}}
     66
     67