Questions tagged [docker-cleanup]
5 questions
7
votes
2 answers
Can't remove image due to error: "Error response from daemon: reference does not exist"
I'm having a strange problem while trying to clear the images created by Docker. This is what I did:
Remove all containers
$ docker rm $(docker ps -a -q)
bb3927e956bf
3e2eeb6287c4
Check if there is any container running or created after:
$ docker…

ReynierPM
- 17,594
- 53
- 193
- 363
4
votes
2 answers
Script to delete old images from Azure container registry
I want to remove some unwanted tags/images from various repositories of azure container registry. I want to do all these programmatically. For example, what I need is:
Authenticate with ACR
List all repositories
List all tags of each…

AnjK
- 2,887
- 7
- 37
- 64
3
votes
2 answers
Docker stop all containers
I've seen many times the follwoing command to stop all docker containers:
docker stop $(docker ps -a -q)
There are two things that are not clear to me:
docker ps -a prints all containers, not only running ones, so what is the point to stop…

Oleksandr Taran
- 581
- 5
- 9
1
vote
1 answer
Use Ansible to remove images based on the label using docker_prune
I would like to remove all docker images, which are not labeled with 2 or more labels. Since Ansible 2.8 there is a docker_prune command, which I would like to use in combination with the images_filter options like this:
docker_prune:
debug: yes
…

Alucard
- 317
- 1
- 3
- 15
0
votes
1 answer
GoogleCloudPlatform/gcr-cleaner cannot delete the stale images
I am trying to use the gcr-cleaner that recommended by google to clean up my stale images. However, it cannot delete anything as expected even if it returns me it executes successfully.
I have granted the browser, cloud run admin, service account…

Ryan
- 3
- 2