Changes between Version 1 and Version 2 of Docker HowTo Auto Start Containers On Reboot


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

--

Legend:

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

    v1 v2  
    2626
    2727   {{{[Unit]}}}
     28
    2829   {{{Description=Redcap 5.7.0 container}}}
     30
    2931   {{{Requires=docker.service}}}
     32
    3033   {{{After=docker.service}}}
     34
    3135   {{{ }}}
     36
    3237   {{{[Service]}}}
     38
    3339   {{{Restart=always}}}
     40
    3441   {{{ExecStart=/usr/bin/docker run -itd -p 81:80 lcbruit/redcap:v1}}}
     42
    3543   {{{ExecStop=/usr/bin/docker stop -t 2 lcbruit/redcap:v1}}}
     44
    3645   {{{ }}}
     46
    3747   {{{[Install]}}}
     48
    3849   {{{WantedBy=default.target}}}
    3950
     
    4354
    4455   {{{systemctl daemon-reload}}}
     56
    4557   {{{systemctl start docker-redcap_5.7.0.service}}}
     58
    4659   {{{systemctl enable docker-redcap_5.7.0.service}}}