Changes between Version 10 and Version 11 of Docker HowTo Auto Start Containers On Reboot


Ignore:
Timestamp:
10/06/16 16:14:57 (8 years ago)
Author:
saj.issa
Comment:

--

Legend:

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

    v10 v11  
    2727   {{{[Unit]}}}
    2828
    29    {{{Description=Redcap 5.7.0 container}}}
     29   {{{Description=Redcap 6.16.8 container}}}
    3030
    3131   {{{Requires=docker.service}}}
     
    3939   {{{Restart=always}}}
    4040
    41    {{{ExecStart=/usr/bin/docker run -itd -p 81:80 lcbruit/redcap:v1}}}
     41   {{{ExecStart=/usr/bin/docker run -v /share:/share -itd -p 82:80 lcbruit/redcap_upgrade:v6.16.8}}}
    4242
    43    {{{ExecStop=/usr/bin/docker stop -t 2 lcbruit/redcap:v1}}}
     43   {{{ExecStop=/usr/bin/docker stop -t 2 lcbruit/redcap_upgrade:v6.16.8}}}
    4444
    4545   {{{ }}}
     
    5555   {{{systemctl daemon-reload}}}
    5656
    57    {{{systemctl start docker-redcap_5.7.0.service}}}
     57   {{{systemctl start docker-redcap_6.16.8.service}}}
    5858
    59    {{{systemctl enable docker-redcap_5.7.0.service}}}
     59   {{{systemctl enable docker-redcap_6.16.8.service}}}
    6060
    61616. To disable a service run the following commands (rename service name) :
    6262
    63    {{{systemctl stop docker-redcap_5.7.0.service}}}
     63   {{{systemctl stop docker-redcap_6.16.8.service}}}
    6464
    65    {{{systemctl disable docker-redcap_5.7.0.service}}}
     65   {{{systemctl disable docker-redcap_6.16.8.service}}}
    6666
    67677. Change will only come to effect on a reboot