Podman
Server Pro can run on rootless Podman instead of Docker. The bin/podman-setup script checks the host is configured correctly, and fixes what it can.
Requirements
RHEL 9 or later, with SELinux enforcing
A non-root user with
sudoaccessA clean installation. Migrating an existing Docker installation is not covered
SERVER_PRO=trueandSIBLING_CONTAINERS_ENABLED=trueinconfig/overleaf.rc
Rootless Podman can't bind to ports below 1024 by default, so set OVERLEAF_PORT to a higher port, for example 8080.
Running the setup script
Check the host:
bin/podman-setupIf there are any issues or unmet dependencies, you can use the command below to automatically address them:
bin/podman-setup --applyThe script exits with 0 if all checks pass, 1 if there are warnings, and 2 if there are failures. It will not run as root.
Logging in to quay.io is not done by the script. Run podman login quay.io.
What the Script Changes
With --apply, the script may change the following.
System-wide (using sudo):
Installs
podman,podman-docker,git,curl,checkpolicyandpolicycoreutilswithdnfEnables lingering for your user with
loginctlCreates
/etc/containers/nodockerLoads the
podman_socket_clsiSELinux policy module, whenSELINUX_MODE=managed
For your user:
Enables the
podman.socketuser serviceInstalls Docker Compose v2 from GitHub to
~/.local/bin/docker-compose, and links it in~/.docker/cli-plugins/Adds a Compose provider to
~/.config/containers/containers.confAdds
mongoandredisaliases in~/.config/containers/registries.conf.d/overleaf-toolkit.conf
In the Toolkit:
Sets
DOCKER_SOCKET_PATHandDOCKER_HOSTinconfig/overleaf.rcSets
SECCOMP_PROFILEinconfig/variables.env, and extracts the profile toconfig/seccomp/Builds the SELinux policy module in
config/selinux/Changes the ownership of the data directories with
podman unshare chown
SELinux
SELINUX_MODE in config/overleaf.rc sets the SELinux options for the sharelatex container:
managed: use thesharelatex_ttype from the policy module that ships with the Toolkit.bin/podman-setup --applyinstalls the modulecustom: use the type set inSELINUX_LABEL, from your own policy moduledisable(default): disable SELinux confinement for the containernone: set no SELinux options
See Toolkit settings for details.
Seccomp profile
With Podman, SECCOMP_PROFILE in config/variables.env must point to the seccomp profile on the host. bin/podman-setup --apply, bin/up and bin/upgrade extract it from the Server Pro image to config/seccomp/<version>/clsi-profile.json and set SECCOMP_PROFILE for you.
Last updated
Was this helpful?