Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot remove Docker Container from Docker Desktop

I'm trying to remove a container on the Docker Desktop applicaiton. (v3.6.0 Mac)

Cannot remove Docker Compose application. Reason: Error invoking remote method 'compose-action': Error: Command failed: docker-compose --file "docker-compose.yaml" --project-name "tos-apps" --project-directory "/Users/kunalojha/Desktop/tos-apps" down time="2021-08-22T18:40:00-05:00" level=warning msg="The "UID" variable is not set. Defaulting to a blank string." time="2021-08-22T18:40:00-05:00" level=warning msg="The "UID" variable is not set. Defaulting to a blank string." services.redis.user must be a string

It seems to throw this message anytime I attempt to close it. I have seen a github issue opened regarding this and closed after a new release, but i'm still facing the same issue. Any thoughts on how to resolve this?

like image 239
Kode_12 Avatar asked Nov 21 '25 17:11

Kode_12


1 Answers

This is how I solved an issue similar to this one:

Find the container id using docker ps - docker ps -a will show all containers, docker ps -l the last created container.

Than remove all the containers for the application individually e.g. docker rm c52b93c43544.

like image 123
brijber Avatar answered Nov 24 '25 08:11

brijber



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!