简体   繁体   中英

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?

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 eg docker rm c52b93c43544 .

The solution is to remove the items one by one via their container id in the terminal:

  1. Find the container id using

     docker ps -a
  2. Delete the container via its id.

     docker rm <container-id>

You can try to remove the container or containers in the cmd.exe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM