mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
The --image-version flag is for internal use only. The `ucp help` command doesn't output that flag anymore, so I'm removing it from the docs also. Fixes #795 Signed-off-by: Joao Fernandes <joao.fernandes@docker.com>
2.7 KiB
2.7 KiB
+++ title = "uninstall" keywords= ["uninstall, ucp"] description = "Uninstall a UCP controller and nodes" [menu.main] identifier = "ucp_uninstall" parent = "ucp_ref" +++
uninstall
docker run --rm -it \
--name ucp \
-v /var/run/docker.sock:/var/run/docker.sock \
docker/ucp \
uninstall [command options]
Description
Removes UCP from a node. The uninstall command doesn't remove any other
containers that are running, except those recognized to be part of UCP.
Options
| Option | Description |
|---|---|
--debug, -D |
Enable debug. |
--jsonlog |
Produce json formatted output for easier parsing. |
--interactive, -i |
Enable interactive mode.,You are prompted to enter all required information. |
--id |
The ID of the UCP instance to uninstall. |
--preserve-certs |
Don't delete the certs on the host. |
--preserve-images |
Don't delete images on the host. |
Example
The following example illustrates an interactive uninstall.
-
Run the uninstall command.
$ docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp uninstall -i INFO[0000] We're about to uninstall the local components for UCP ID: FEY4:M46O:7OUS:QQA4:HLR3:4HRD:IUTH:LC2W:QPRE:BLYH:UWEM:3TYV Do you want proceed with the uninstall? (y/n): y INFO[0000] Removing UCP Containers INFO[0000] Removing UCP images INFO[0005] Removing UCP volumes -
List the images remaining on the node.
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker/ucp latest 788bdcfde423 8 days ago 8.239 MB -
Remove the
ucpimage from the node.Because the
ucptool is running during the installation, it can't remove its own image. If you want to free up that space, delete the ucp image.$ docker rmi docker/ucp:latest Untagged: docker/ucp:latest Deleted: sha256:788bdcfde423b6226b90ac98e6f233b15c0c527779177d7017a4e17db31404c9 Deleted: sha256:dee84053b25f9b3edffb734c842a70313021063cc78d9158c63de109e1b3cb72 Deleted: sha256:93743d5df2362466e2fe116a677ec6a4b0091bd09e889abfc9109047fcfcdebf -
Return to the UCP web application to confirm the node is removed.