Skip to content

Using with Docker✯

This page describes how to push and pull images using the docker command. The examples can also be applied to podman.

Prerequisites

Naming Convention✯

Any image hosted on the registry has a name in the following format:

registry.isima.fr/<project>/<repository>:<tag>
  • <project>: the name of your project
  • <repository>: the name of your image (e.g. mon-appli)
  • <tag>: the version (e.g. latest, 1.0.0, dev…)

Authenticating✯

Authentication is only required to push images, or to pull from a private project.

docker login registry.isima.fr -u <your_username>
# Password: your CLI secret

Pushing an Image✯

1. Build or Tag the Image✯

From a Dockerfile:

docker build -t registry.isima.fr/mon-projet/mon-appli:1.0.0 .

Or re-tag an existing image for the registry:

docker tag mon-appli:latest registry.isima.fr/mon-projet/mon-appli:1.0.0

2. Push the Image✯

docker push registry.isima.fr/mon-projet/mon-appli:1.0.0

The image then appears in your project on the web interface, where it is automatically scanned if the option is enabled.

Image repository in a project

Pushing Multiple Tags✯

It is common to tag the same image with an explicit version and the latest tag:

docker tag registry.isima.fr/mon-projet/mon-appli:1.0.0 registry.isima.fr/mon-projet/mon-appli:latest
docker push registry.isima.fr/mon-projet/mon-appli:latest

Tagging with Git Commit Hash

To precisely track which version of the code produced an image:

docker tag registry.isima.fr/mon-projet/mon-appli:latest \
           registry.isima.fr/mon-projet/mon-appli:$(git rev-parse --short HEAD)
docker push registry.isima.fr/mon-projet/mon-appli:$(git rev-parse --short HEAD)

Pulling an Image✯

From a public project, no authentication is required:

docker pull registry.isima.fr/mon-projet/mon-appli:1.0.0

From a private project, authenticate first with docker login (see above).

Using with Docker Compose✯

The registry is used transparently in a compose.yaml. Example combining building an image and publishing it to the registry:

services:
  mon-appli:
    image: registry.isima.fr/mon-projet/mon-appli:latest
    build:
      context: .
      dockerfile: Dockerfile
  • Build the image: docker compose build
  • Push it to the registry: docker compose push
  • On the user side, the image is downloaded automatically: docker compose up

Deleting an Image✯

Deletion is done from the web interface (repository tab, select the tag then DELETE), provided you have at least the Maintainer role on the project.

Checks Before Pushing