SyntaxFix
Write A Post
Hire A Developer
Questions
In my case --filter ancestor=<image-name> was not working, so the following command cleaned up the Docker container for me:
--filter ancestor=<image-name>
docker rm $(docker stop $(docker ps -a -q --filter "name=container_name_here" --format="{{.ID}}"))