Files
docker-docs/compose/install/uninstall.md
Allie Sadler 38fec0d159 Engdocs 802b (#15108)
* moved install pages

* moved images

* update toc

* add redirects

* ammend page links

* fix broken links

* fix broken links

* fix broken links

* fix broken links
2022-07-13 10:41:56 +01:00

2.1 KiB

description, keywords, title
description keywords title
How to uninstall Docker Compose compose, orchestration, uninstall, uninstallation, docker, documentation Uninstall Docker Compose

Uninstalling Docker Compose depends on the method you have used to install Docker Compose. On this page you can find specific instructions to uninstall Docker Compose.

Uninstalling Docker Desktop

If you want to uninstall Compose and you have installed Docker Desktop, follow the corresponding link bellow to get instructions on how to remove Docker Desktop.

Note that, unless you have other Docker instances installed on that specific environment, you would be removing Docker altogether by uninstalling the Desktop.

See Uninstall Docker Desktop for:

  • Mac{:target="blank" rel="noopener" class=""}
  • Windows{:target="blank" rel="noopener" class=""}
  • Linux{:target="blank" rel="noopener" class=""}

Uninstalling the Docker Compose CLI plugin

To remove the Compose CLI plugin, run:

$ sudo apt-get remove docker-compose-plugin

Or, if using a different distro, use the equivalent package manager instruction to remove docker-compose-plugin.

Manually installed

If you used curl to install Compose CLI plugin, to uninstall it run:

$ rm $DOCKER_CONFIG/cli-plugins/docker-compose

or, if you have installed Compose for all users, run:

$ rm /usr/local/lib/docker/cli-plugins/docker-compose

You can also use:

{% raw %}

$ docker info --format '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}{{.Path}}{{end}}{{end}}'

{% endraw %}

to inspect the location of the Compose CLI plugin.

Got a Permission denied error?

If you get a Permission denied error using either of the above methods, you do not have the permissions allowing you to remove docker-compose. To force the removal, prepend sudo to either of the above instructions and run it again.