- Docker Engine (Docker CE)
- Docker Compose plugin (
docker compose, v2)
1
1) Remove old/conflicting packages (if present)
If Docker was previously installed from another source, remove it first:This command is safe if some packages are not installed.
2
2) Add Docker’s official apt repository
Install prerequisites:Add the Docker GPG key:Add the repository:
3
3) Install Docker Engine + Compose plugin
Install Docker and the Compose plugin:Start Docker on boot:
4
4) Verify the installation
These commands should run without errors:
5
5) (Optional) Run Docker without sudo
Add your user to the Then log out and back in, or run:Now this should work without
docker group:sudo:The
This is expected for typical Overleaf installs, and especially relevant if you enable Sandboxed Compiles.
docker group has root-equivalent access on the host.This is expected for typical Overleaf installs, and especially relevant if you enable Sandboxed Compiles.

