Skip to main content
Overleaf runs on Docker. You must install:
  • Docker Engine (Docker CE)
  • Docker Compose plugin (docker compose, v2)
These steps target a recent Ubuntu LTS (20.04/22.04/24.04).
Avoid installing docker.io from Ubuntu’s default apt repository.
Use Docker’s official repository so you get a recent Docker version and the docker compose plugin.
The official document comes from: https://docs.docker.com/engine/install/ubuntu/.
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 docker group:
Then log out and back in, or run:
Now this should work without sudo:
The docker group has root-equivalent access on the host.
This is expected for typical Overleaf installs, and especially relevant if you enable Sandboxed Compiles.

Next step

Once Docker is working, continue with the Toolkit installation steps in Using the Toolkit.
Last modified on October 4, 2026