Back to

Well, if you need some logos, we provide these:

svg ·  png
Red Clever Cloud logo
svg ·  png
svg ·  png
White Clever Cloud logo
svg · png
White Clever Cloud logo
svg · png
Posted at September 11, 2018 — Features

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


Clement Nivolle

Co-founder and "Chief Revenue Officer" at Clever Cloud. Clément was a developer, but he acquired new powers after being elected in a rather "sales" oriented role (losing short in 2010).

Follow me

Check out our Blog

We write about programming, security and Clever Cloud products

Join thousands of developers already using Clever Cloud. And try it for free!

Create your account now to start your apps and collaborate within a few minutes. For free with 20€ offered.

By signing up, your agree to our terms of use
Sign in with Github