I was trying out Docker and I did the following:
docker/whalesay
My question is, isn't Docker supposed to upload just the changes? I read it somewhere. It seems like I am making some stupid mistake, I can't believe that we have to upload the entire image everytime after minor changes. Am I missing something?
This is the Dockerfile
I am using to build the image fishsay
:
FROM docker/whalesay:latest
RUN apt-get -y update && apt-get install -y fortunes
CMD /usr/games/fortune -a | cowsay
The whalesay image was ~180 MB; so when I push shouldn't I have to just upload the changed layers?
By default, Docker pulls the latest version. To ensure it does so, you can add the :latest tag.
Creating and maintaining images for Docker Official Images is a collaborative process. It takes place openly on GitHub where participation is encouraged. Anyone can provide feedback, contribute code, suggest process changes, or even propose a new Official Image.
Description. Services are built once and then tagged, by default as project_service . If the Compose file specifies an image name, the image is tagged with that name, substituting any variables beforehand.
Any changes to a layer in your image would requires to be updated in the repository when you call the docker push
. This could be a small and trivial such as including a new package (ex: vi) in your image. However, this would cause new layers to be created and replace the existing layers, causing different layer id's, from what is already in the registry. docker push
uploads all new layers created into the registry, excluding the base image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With