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.
Unless you have other Docker instances installed on that specific environment, you would be removing Docker altogether by uninstalling the Desktop.
Uninstalling the Docker Compose CLI plugin
To remove the Compose CLI plugin, run:
$ sudo apt-get remove docker-compose-plugin
$ sudo yum remove docker-compose-plugin
If you used
curl to install Compose CLI plugin, to uninstall it, run:
$ rm $DOCKER_CONFIG/cli-plugins/docker-compose
Remove for all users
Or, if you have installed Compose for all users, run:
$ rm /usr/local/lib/docker/cli-plugins/docker-compose
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
sudoto either of the above instructions and run it again.
Inspect the location of the Compose CLI plugin
To check where Compose is installed, use:
$ docker info --format ''