Reputation: 571
I want to manage a docker private repository in order of pull images using insecure protocol (http), my question is: It is possible to pull changes on images when something changes on the image I have in the repository or I have to pull all the images again??
For example when something changes on the code that I have in the images in the repository and then I rebuild it on my server I would like to pull that changes from any pc... Something like git I mean
Thank you all!
Upvotes: 1
Views: 2562
Reputation: 25152
It is possible to pull changes on images when something changes on the image I have in the repository or I have to pull all the images again?? For example when something changes on the code that I have in the images in the repository and then I rebuild it on my server I would like to pull that changes from any pc... Something like git I mean
You can't pull only the changes like git
. Docker pulls images and this means that you will have to run new containers after the image is updated. As it is described here: How to upgrade docker container after its image changed, your workflow/setup should allow you to:
pull
the new imagestop
your running containerremove
itrun
it again with the new versionI think you should also do some research on tags
which might help you. Since your are updating code, you can use images with different tags. I have found this question: How to update a Docker Image which has many useful things you may wanna use.
Also, if you are using the :latest
tag, you should keep in mind the following:
If you are shipping Docker images to a production environment, you should just ignore the
latest tag
. Don’t use it. Don’t be tempted by it. It’s easy to look at it and think that your deployment script should just pull “latest” and your build process will ensure that’s valid. It takes a lot of discipline to make that work. Just version your tags. Every time.
mentioned here: The misunderstood Docker tag: latest
Upvotes: 2