Changes between Version 10 and Version 11 of Docker HowTo Auto Start Containers On Reboot
- Timestamp:
- 10/06/16 16:14:57 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docker HowTo Auto Start Containers On Reboot
v10 v11 27 27 {{{[Unit]}}} 28 28 29 {{{Description=Redcap 5.7.0container}}}29 {{{Description=Redcap 6.16.8 container}}} 30 30 31 31 {{{Requires=docker.service}}} … … 39 39 {{{Restart=always}}} 40 40 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}}} 42 42 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}}} 44 44 45 45 {{{ }}} … … 55 55 {{{systemctl daemon-reload}}} 56 56 57 {{{systemctl start docker-redcap_ 5.7.0.service}}}57 {{{systemctl start docker-redcap_6.16.8.service}}} 58 58 59 {{{systemctl enable docker-redcap_ 5.7.0.service}}}59 {{{systemctl enable docker-redcap_6.16.8.service}}} 60 60 61 61 6. To disable a service run the following commands (rename service name) : 62 62 63 {{{systemctl stop docker-redcap_ 5.7.0.service}}}63 {{{systemctl stop docker-redcap_6.16.8.service}}} 64 64 65 {{{systemctl disable docker-redcap_ 5.7.0.service}}}65 {{{systemctl disable docker-redcap_6.16.8.service}}} 66 66 67 67 7. Change will only come to effect on a reboot