How to make docker reset the image on remote server?

Work Moment

On docker build from jenkins 1st docker images are created tagged properly as LATEST on remote server.

On rebuild it supposed to overwrite docker image on server. But it didn't. Virtually it creates new docker images with no-tag repository and no-tag tag. And avoid using predefined domain name for image. So creates a new because it's supposed create NEW image because they are totally different.

Is there any way to avoid just deleting image directly from the remote server? But to update image docker on same tag(domain) name?

Any ideas on workaround? How to avoid making new docker images with static unchanged TAG name from jenkins build. Because it eats a lot of memory space on the moment when run on cron.

How can I overwrite docker image or make a facade that it's overwrited?

AtomPi

You can delete no-tag images after build image from jenkins by: docker rmi $(docker images -f "dangling=true" -q)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related