Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I uninstall docker-compose?

I installed docker-compose by following the official documentation: http://docs.docker.com/compose/install/

Now I want to uninstall docker-compose.

$ docker-compose -h 

offers no command for uninstalling, nor does the official documentation offer any instructions.

I deleted my docker-compose.yml file and /usr/local/bin/docker-compose, but I want to make sure that's everything.

I'm using OSX Yosemite 10.10.3 on a MacbookPro.

EDIT: Regarding the installation instructions I followed, I didn't use pip. I used the documented curl command:

$ curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose $ chmod +x /usr/local/bin/docker-compose 
like image 644
mycargus Avatar asked Jun 22 '15 19:06

mycargus


People also ask

How do I uninstall and remove docker?

Removing one or more containers To remove one or more Docker containers, use the docker container rm command, followed by the IDs of the containers you want to remove.


2 Answers

Documenation

Please note that this is now in the docs.

Coupled Installation and Removal

Note: on Mac Docker now installs Docker Compose. So the strategy for removal has changed a bit. If you uninstall Docker, and you want to uninstall both, then you also uninstall Docker Compose.

Individual Removal if Installed Using curl

It is commonly installed to /usr/local/bin/docker-compose on macs. However, you can run which docker-compose to find the exact location.

Run the following command (*nix systems) to remove:

rm $(which docker-compose) 

If you get a permission denied error then you will need to prepend sudo:

sudo rm $(which docker-compose) 

To verify that it was successful, run the following command which should return nothing:

which docker-compose 

It should say that the command wasn't found.

Individual Removal if Installed Using PIP

If you've installed Docker Compose using PIP then you can run:

pip uninstall docker-compose 

You may have to use sudo if you get a permission denied error:

sudo pip uninstall docker-compose 
like image 149
CommandZ Avatar answered Sep 21 '22 13:09

CommandZ


first get docker path by:

which docker-compose

then it will return path like:/usr/bin/docker-compose

then remove it:

sudo rm -rf /usr/bin/docker-compose

like image 41
Eslam Saber Avatar answered Sep 22 '22 13:09

Eslam Saber