Docker Private Registry Now Available

We're talking about Docker today! As you may know, Docker has a tremendous amount of images on their public registry. But sometimes you may need to pull images from a private Docker registry. Mostly because you can't always publicly publish the images. So, we've added a few environement variables to allow you to fetch these images, let's see how to do it.

In this note post we assume you already have your own Docker registry. If this isn't the case, you can see how to deploy a registry server here.

So, pulling private images is done through the docker build command. To login to a private registry, you need to set a few environment variables:

  • CC_DOCKER_LOGIN_USERNAME: the username to use to login
  • CC_DOCKER_LOGIN_PASSWORD: the password of your username
  • CC_DOCKER_LOGIN_SERVER (optionnal): the server of your private registry. Defaults to Docker's public registry.

This uses the docker login command under the hood.

Build-time variables

You can use the ARG instruction to define build-time environment variables. Every environment variable defined for your application will be passed as a build environment variable using the --build-arg=<ENV> parameter during the docker build.

Source image: Vladimir Malyavko

Blog

À lire également

Create your own MCP client/server: as easy as 1-2-3 with Otoroshi

While Otoroshi with LLM already allows you to simplify the management of your various AI providers, access to models and integration with your teams, we have added simplified management of MCP clients and servers.
Company

Clever Cloud obtains HDS (Health Data Hosting) certification

Clever Cloud achieves HDS Certification, enabling it to host health data in France. Clever Cloud, Europe's leading provider of Platform as a Service cloud solutions, today announced that it has been awarded the Hébergeur de Données de Santé (HDS) certification, in its updated version effective May 16, 2024, for all 6 activities in the standard. This certification reinforces Clever Cloud's position as a trusted partner for companies and organizations in the healthcare sector.
Press

Clever Tools: a year of enhancements for your deployments, on the road to v4

A command line interface (CLI) is at the core of developer experience. At Clever Cloud, we have been providing Clever Tools for almost 10 years.
Engineering Features