Stopping Control Center (single-host deployment)
- Log in to the master host as root, or as a user with superuser privileges.
-
Stop the top-level service serviced is managing, if necessary.
-
Show the status of running services.
serviced service status
The top-level service is the service listed immediately below the headings line.- If the status of the top-level service and all child services is stopped, proceed to the next step.
- If the status of the top-level service and all child services is not stopped, perform the remaining substeps.
-
Stop the top-level service.
Replace Service with the name or identifier of the top-level service:
serviced service stop Service
-
Monitor the stop.
serviced service status
When the status of the top-level service and all child services is stopped, proceed to the next step.
-
Show the status of running services.
-
Stop the Control Center service.
systemctl stop serviced
-
Ensure that no containers remain in the local repository.
-
Display the identifiers of all containers, running and exited.
docker ps -qa
- If the command returns no result, stop. This procedure is complete.
- If the command returns a result, perform the following substeps.
-
Remove all remaining containers.
docker ps -qa | xargs --no-run-if-empty docker rm -fv
-
Display the identifiers of all containers, running and exited.
docker ps -qa
- If the command returns no result, stop. This procedure is complete.
- If the command returns a result, perform the remaining substeps.
-
Disable the automatic startup of serviced.
systemctl disable serviced
-
Reboot the host.
reboot
- Log in to the master host as root, or as a user with superuser privileges.
-
Enable the automatic startup of serviced.
systemctl enable serviced
-
Display the identifiers of all containers, running and exited.