Find the docker containers using an image? -


if have id of image how can find out containers using image? when removing image still used error message:

$ docker rmi 77b0318b76b3 error response daemon: conflict, cannot delete 77b0318b76b3 because container 21ee2cbc7cec using it, use -f force 

but how find out in automated way without trying remove it?

f want list images of active containers docker inspect -f '{{ .config.image}}' $(docker ps -q) , containers docker inspect -f '{{ .config.image}}' $(docker ps -qa)


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -