# About docker registry and the company

**URL:** <https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69>\
**Category:** Image Distribution\
**Created:** [August 25, 2020, 10:27am UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69 "2020-08-25T10:27:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![smosciat](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@smosciat](https://wlcg-discourse.web.cern.ch/u/smosciat)\
**Post date:** [August 25, 2020, 10:27am UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/1 "2020-08-25T10:27:01Z")

</div>

Hi all,

last month there are two important piece of news that I believe should not pass under the radar regarding the default docker registry.

[First, stale images will be deleted from the docker hub. A stale image is an image that did not receive either pull or push in the last six months.](https://www.docker.com/pricing/resource-consumption-updates)

[Second, pull to images will be limited to 200 pulls every 6 hours.](https://www.docker.com/blog/scaling-docker-to-serve-millions-more-developers-network-egress/)

These changes are more than acceptable from a developer, or small company perspective. However I am afraid that for our needs we require something more.

For instance DUCC and `unpacked.cern.ch` are definitely above the 200 pulls every 6 hours limit. And unfortunately I don’t see any way to bring them down without increasing the latency between publication on the docker hub and publication on `unpacked.cern.ch`.

I am also afraid that a lot of scientific code is just forgotten in some docker hub image, and that code will eventually be lost.

Gitlab registries provide a nice solution to this problem. But rely on them should be a conscious and deliberate choice, not just the result of inertia and using the most convenient tool at the moment.

CERN has the capacity to operate an image registry for our needs and not doing so should be our deliberate choice.

I see a risk on the use of Gitlab registries. They are not the core business of gitlab but a complementary service. There is no long-term guarantee on their availability and support. Moreover, if the financial situation of gitlab changes, they could decide to move them in another price tier too expensive for CERN.

I would like to know what is your opinion on the matter.

Cheers,  
Simone

---

<div class="post-metadata">

**Author:** ![rbritoda](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@rbritoda](https://wlcg-discourse.web.cern.ch/u/rbritoda)\
**Post date:** [August 25, 2020, 11:01am UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/2 "2020-08-25T11:01:31Z")

</div>

We already have registry.cern.ch which is based on Harbor (a CNCF graduated project). It is not used for container images today but for other OCI artifacts like helm charts, gitlab remains as the recommended image registry.

There’s ongoing discussion and work to improve the registry functionality we have at CERN, including vulnerability scans, artifact signing, among many others - and also how to integrate gitlab with an external registry.

I don’t think we need to worry about gitlab’s commitment to its registry, there’s a clear and easy transition if it would ever be necessary.

---

<div class="post-metadata">

**Author:** ![jblomer](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://wlcg-discourse.web.cern.ch/u/jblomer)\
**Post date:** [August 25, 2020, 11:42am UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/3 "2020-08-25T11:42:17Z")

</div>

At least for the time being, registry.cern.ch seems to be available only internally. What we have in mind is a cvmfs-enabled container registry for the benefit of WLCG sites.

---

<div class="post-metadata">

**Author:** ![rbritoda](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@rbritoda](https://wlcg-discourse.web.cern.ch/u/rbritoda)\
**Post date:** [August 25, 2020, 12:08pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/4 "2020-08-25T12:08:55Z")

</div>

Yes, and it’s not used for docker images. I was pointing out that the transition from gitlab wouldn’t be hard if ever needed. I didn’t get this was a request for a cvmfs backed registry from the previous message.

---

<div class="post-metadata">

**Author:** ![jblomer](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://wlcg-discourse.web.cern.ch/u/jblomer)\
**Post date:** [August 25, 2020, 12:22pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/5 "2020-08-25T12:22:18Z")

</div>

Not so much a request 🙂  
But the Docker announcement might be a good motivation to seriously discuss the registry question.

---

<div class="post-metadata">

**Author:** ![dwd](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/d/b9bd4f/32.png) [@dwd](https://wlcg-discourse.web.cern.ch/u/dwd)\
**Post date:** [August 25, 2020, 2:01pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/6 "2020-08-25T14:01:47Z")

</div>

A Docker Pro plan is only $60 per year, so wouldn’t that be a lot easier/cheaper than switching to a separate registry?

---

<div class="post-metadata">

**Author:** ![jblomer](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://wlcg-discourse.web.cern.ch/u/jblomer)\
**Post date:** [August 25, 2020, 2:45pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/7 "2020-08-25T14:45:28Z")

</div>

Yep, that’s our secret backup plan, at least for the time being. Docker might raise the prices eventually…

---

<div class="post-metadata">

**Author:** ![rptaylor](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/r/49beb7/32.png) [@rptaylor](https://wlcg-discourse.web.cern.ch/u/rptaylor)\
**Post date:** [August 25, 2020, 4:58pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/8 "2020-08-25T16:58:59Z")

</div>

Our small-ish k8s cluster (~ 500 cores) was often getting 504 gateway timeouts when pulling images from CERN gitlab. This is with the Docker graph driver plugin, so each “image” is really only a few KB of JSON.

Changing from using the ‘latest’ tag to an explicit tag sidestepped the problem by avoiding the need to check for image updates, which is the best practice for production anyway. But it doesn’t make me feel confident about large scale use of the gitlab registry.

---

<div class="post-metadata">

**Author:** ![aforti](https://wlcg-discourse.web.cern.ch/user_avatar/wlcg-discourse.web.cern.ch/aforti/32/16_2.png) [@aforti](https://wlcg-discourse.web.cern.ch/u/aforti)\
**Post date:** [August 26, 2020, 6:26am UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/9 "2020-08-26T06:26:55Z")

</div>

Hi,

In ATLAS we are talking about organising a meeting to talk about this. It’s clear that if we move stuff to CERN we need to ask for resources. Gitlab, as Ryan says, is not powerful enough, not even for small images so we need to either get gitlab in shape or have a different registry and it needs of course to be discussed with you guys for the interaction with CVMFS. It’s likely 1 meeting will be not enough.

cc @lheinric with whom we were discussing.

---

<div class="post-metadata">

**Author:** ![aforti](https://wlcg-discourse.web.cern.ch/user_avatar/wlcg-discourse.web.cern.ch/aforti/32/16_2.png) [@aforti](https://wlcg-discourse.web.cern.ch/u/aforti)\
**Post date:** [September 11, 2020, 10:12am UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/10 "2020-09-11T10:12:32Z")

</div>

Hi,

we raised the issue in the IT-ATLAS meeting and this was brought tothe attention of CERN-IT. It needs an executive decision from CERN-IT management. The more groups make noise the more likely is we get resources.

---

<div class="post-metadata">

**Author:** ![dwd](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/d/b9bd4f/32.png) [@dwd](https://wlcg-discourse.web.cern.ch/u/dwd)\
**Post date:** [September 11, 2020, 2:12pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/11 "2020-09-11T14:12:08Z")

</div>

The Docker company has done so much for us, I don’t think we should begrudge giving them $60 per year. Think of it is as community support. Even a 1-hour meeting with CERN-IT will cost CERN way more than that in people time. It’s not even worth the paperwork to get reimbursed for that amount. I volunteer to personally create and pay for an account if no-one else wants to do it.

---

<div class="post-metadata">

**Author:** ![aforti](https://wlcg-discourse.web.cern.ch/user_avatar/wlcg-discourse.web.cern.ch/aforti/32/16_2.png) [@aforti](https://wlcg-discourse.web.cern.ch/u/aforti)\
**Post date:** [September 11, 2020, 4:28pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/12 "2020-09-11T16:28:39Z")

</div>

Hi Dave,

they did indeed do a lot for us but after looking at the pricing my understanding is that with $60 a month only the authenticated owner has unlimited downloads. Which is I don’t think it is workable.

cheers  
alessandra

---

<div class="post-metadata">

**Author:** ![dwd](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/d/b9bd4f/32.png) [@dwd](https://wlcg-discourse.web.cern.ch/u/dwd)\
**Post date:** [September 11, 2020, 4:56pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/13 "2020-09-11T16:56:08Z")

</div>

[Docker pricing](https://www.docker.com/pricing) for the Pro plan is $5 per month. I am assuming that containers will be distributed to the grid through cvmfs, so we should mainly care only about the cost to download to unpacked.cern.ch and its successor for distributing per-user containers. gitlab.cern.ch would never be able to reasonably sustain a rate of downloading individual user containers to grid nodes.

Ok the separate issue is long-term archival of containers. I agree it makes sense to use gitlab for that, but if users only upload there containers that they want to keep long term, it’s not clear that gitlab isn’t already adequate for that.

Dave

---

<div class="post-metadata">

**Author:** ![jblomer](https://wlcg-discourse.web.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://wlcg-discourse.web.cern.ch/u/jblomer)\
**Post date:** [September 11, 2020, 4:57pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/14 "2020-09-11T16:57:51Z")

</div>

I agree. Their current pricing makes some tasks still possible, e.g. converting images to unpacked.cern.ch. But we cannot have the grid getting images from dockerhub (which is anyway not a good idea). For archival, having them in cvmfs is an option, too.

---

<div class="post-metadata">

**Author:** ![aforti](https://wlcg-discourse.web.cern.ch/user_avatar/wlcg-discourse.web.cern.ch/aforti/32/16_2.png) [@aforti](https://wlcg-discourse.web.cern.ch/u/aforti)\
**Post date:** [September 11, 2020, 5:18pm UTC](https://wlcg-discourse.web.cern.ch/t/about-docker-registry-and-the-company/69/15 "2020-09-11T17:18:09Z")

</div>

ATLAS images are downloaded from other places than the grid too. Currently the bulk of pulls is not from the grid.
