AATHITH RAJENDRAN
AATHITH RAJENDRAN

Reputation: 5396

How many docker images can I store in Docker Private Repository

I have created one private repository in docker hub.
My doubts are

  1. How many separate images can I store in my single private repository?
  2. Is there any image size restriction?
  3. When do I need more than one private repository?

Upvotes: 14

Views: 12059

Answers (2)

Mostafa Hussein
Mostafa Hussein

Reputation: 11970

  1. Each repository can have one docker image only however the image can have many tags so you can have 100 tag. each tag can represent an image if you want to, which gives you a total of 100 in this case same image name but different tags e.g. myapplication:backend, myapplication:frontend, myapplication:xservice and so on. Quoted from the documentation:

    A single Docker Hub repository can hold many Docker images (stored as tags).

  2. Image size restriction is not announced as far as i know but you should keep your image small as you can as the larger it gets the more issues you may face in push and pull so don't make your image 10 GB for example unless there is a must.

  3. You may need more than one private repository in case you need to keep each image in a repository.

Upvotes: 15

webwurst
webwurst

Reputation: 4950

Best practice is to use one repository per application. You use different tags to differentiate between versions and flavors of your app. Theoretically you can mix totally different Docker images in one repo. But maybe you can just choose a different Docker repository provider instead that offers more private repositories for free like Codefresh, GitLab and some others.

Upvotes: 16

Related Questions