Setup Docker
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.
2) Add Docker’s official apt repository
Install prerequisites:
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupgAdd the Docker GPG key:
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpgAdd the repository:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo ${VERSION_CODENAME}) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update5) (Optional) Run Docker without sudo
Add your user to the docker group:
sudo usermod -aG docker $USERThen log out and back in, or run:
newgrp dockerNow this should work without sudo:
docker psThe 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 updated
Was this helpful?