Changes between Version 8 and Version 9 of Docker HowTo Auto Start Containers On Reboot
- Timestamp:
- 10/06/16 15:11:58 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docker HowTo Auto Start Containers On Reboot
v8 v9 19 19 This will list out all the services that are enabled. 20 20 21 3 a. To create a new service called '''docker-[containername].service''' :21 3. To create a new service called '''docker-[containername].service''' : 22 22 23 23 {{{sudo vi /etc/systemd/system/docker-[containername].service}}} … … 49 49 {{{WantedBy=default.target}}} 50 50 51 3b. If you have a new container build modify the content of this file.51 4. If you have a new container build modify the content of this file. 52 52 53 4. To activate the service run the following commands (rename service name) :53 5. To activate the service run the following commands (rename service name) : 54 54 55 55 {{{systemctl daemon-reload}}} … … 59 59 {{{systemctl enable docker-redcap_5.7.0.service}}} 60 60 61 5. To disable a service run the following commands (rename service name) :61 6. To disable a service run the following commands (rename service name) : 62 62 63 63 {{{systemctl stop docker-redcap_5.7.0.service}}}