How to remove an image across all nodes in a Docker swarm? -


on local host, can remove image using either docker image rm or docker rmi.

what if current host manager node in docker swarm , wish cascade operation throughout swarm?

when first created docker service, image pulled down on each node in swarm. removing service did not remove image , nodes retain copy of image.

it feels natural if there's way "push" image out nodes there should equally natural way remove them without having ssh every single machine :'( plus, real problem. sooner or later nodes bound have no more disk space!

afaik there no such option of now. each node responsible of own cleanup. there command docker system prune -f can use clear container data.

but tagged images can deleted using docker rmi only. see below issues

https://github.com/moby/moby/issues/24079


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -