Skip to content

Docker container management

Running containers

First, log into the GitLab instance's registry:

Important

Don't forget the port! Otherwise it will not fail, but it won't work with containers at gitlab.lip6.fr:5050/latte/..., which do need the port.

Bash
docker login gitlab.lip6.fr:5050

And enter your GitLab user and password.

Note

If you have enabled 2-factor authentication (2FA), the password needed is instead a Personnal Access Token. Create it from your settings with the read_registry, write_registry permissions.

You can then pull images from our registry, for instance:

Bash
docker pull gitlab.lip6.fr:5050/latte/docs:main

Connecting to unaccessible services locally

Assuming the services' host is latte.proj.lip6.fr, and the service you are trying to access is in port 9090, you can access it from port 59090 on your localhost with this SSH tunnel:

Bash
ssh -L localhost:59090:latte.proj.lip6.fr ssh.lip6.fr

Leave open the terminal running the command, kill it when you're done.