Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dockerfile or Registry? Which is the preferred strategy for distribution?

Tags:

docker

If you are making a service with a Dockerfile is it preferred for you to build an image with the Dockerfile and push it to the registry -- rather than distribute the Dockerfile (and repo) for people to build their images?

What use cases favour Dockerfile+repo distribution, and what use case favour Registry distribution?

like image 317
cpb Avatar asked Aug 03 '13 03:08

cpb


People also ask

What is the advantage of Dockerfile?

Advantages of Dockerfileit have simple syntax for image and do many change automatically that will take more time while doing manually. Dockerfile have systematic step that can be understand by others easily and easy to know what exact configuration changed in base image.

What is the difference between Docker hub and Docker registry?

Docker registries are used to host and distribute Docker Images. Docker Hub is Docker's official cloud-based registry. To get started with Docker Hub you can pull (download) an image or push (upload) one of your local images.

Is Docker a distribution?

The Docker registry software (called Distribution) is open source software and distributed under the Apache 2 license. The availability of this software and permissive license keep the engineering cost of running your own registry low.

Why do you need a Docker registry?

A Docker registry is organized into Docker repositories , where a repository holds all the versions of a specific image. The registry allows Docker users to pull images locally, as well as push new images to the registry (given adequate access permissions when applicable).


1 Answers

I'd imagine the same question could be applied to source code versus binary package installs.

Pushing to a central shared registry allows you to freeze and certify a particular configuration and then make it available to others in your organisation.

like image 115
Mark O'Connor Avatar answered Oct 05 '22 06:10

Mark O'Connor