Changes between Version 7 and Version 8 of Docker HowTo Auto Start Containers On Reboot
- Timestamp:
- 10/06/16 15:01:22 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docker HowTo Auto Start Containers On Reboot
v7 v8 23 23 {{{sudo vi /etc/systemd/system/docker-[containername].service}}} 24 24 25 add the contents similar to the following but change {{{Description ExecStart ExecStop}}} :25 add the contents similar to the following, but change {{{Description ExecStart ExecStop}}} : 26 26 27 27 {{{[Unit]}}} … … 49 49 {{{WantedBy=default.target}}} 50 50 51 3b. To amend51 3b. If you have a new container build modify the content of this file. 52 52 53 Run the following:53 4. To activate the service run the following commands (rename service name) : 54 54 55 55 {{{systemctl daemon-reload}}} … … 58 58 59 59 {{{systemctl enable docker-redcap_5.7.0.service}}} 60 61 5. 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