Skip to content

Docker on TP workstations✯

On TP workstations, Docker runs in rootless mode: the container engine executes within your session, without administrator privileges. There is no shared Docker daemon on the machine, and you don’t need to install or start anything: everything is ready when you log in.

Docker is ready when you log in✯

The script /etc/profile.d/62-docker-rootless.sh, executed automatically at each login, configures your environment (UID ranges, environment variables, access to the rootless daemon): the docker and docker compose commands work seamlessly in your session, without any manipulation.

docker run hello-world
docker compose up -d

Where to work with Docker✯

  • Docker must be used in the /home/local/<username>/ directory: this is the local disk of the machine, the only location compatible with build contexts and volumes.
  • Local volumes must not be mounted in your home /home/local.isima.fr/<username>/: your home is a roaming profile (encrypted, backed up — see homedirs), not a storage location suitable for Docker volumes.
  • Images and containers remain local to the machine: they disappear at nightly reboot, and the workstation may be reinstalled without notice. Your notes and personal files follow you in your roaming home; re-download your images at each session and version your code in the GitLab software forge .

To remember

Alternative: your personal VM✯

On the VM assigned to you, you are root: using Docker there poses no particular problem — classic installation and daemon, volumes wherever you want, persistent data from one session to the next.