Changes between Version 1 and Version 2 of Docker HowTo Auto Start Containers On Reboot
- Timestamp:
- 10/06/16 14:46:37 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docker HowTo Auto Start Containers On Reboot
v1 v2 26 26 27 27 {{{[Unit]}}} 28 28 29 {{{Description=Redcap 5.7.0 container}}} 30 29 31 {{{Requires=docker.service}}} 32 30 33 {{{After=docker.service}}} 34 31 35 {{{ }}} 36 32 37 {{{[Service]}}} 38 33 39 {{{Restart=always}}} 40 34 41 {{{ExecStart=/usr/bin/docker run -itd -p 81:80 lcbruit/redcap:v1}}} 42 35 43 {{{ExecStop=/usr/bin/docker stop -t 2 lcbruit/redcap:v1}}} 44 36 45 {{{ }}} 46 37 47 {{{[Install]}}} 48 38 49 {{{WantedBy=default.target}}} 39 50 … … 43 54 44 55 {{{systemctl daemon-reload}}} 56 45 57 {{{systemctl start docker-redcap_5.7.0.service}}} 58 46 59 {{{systemctl enable docker-redcap_5.7.0.service}}}