How to
Running LinuxServer Containers
The base images our application images derive from, where the images are published, and the standard run and compose parameters they share.
Image Structure
Base Images
We have curated various base images which our main application images derive from. This is beneficial for two main reasons:
- A common dependency base between multiple images, reducing the likelihood of variation between two or more applications that share the same dependencies.
- Reduction in image footprint on your host machine by fully utilising Docker’s image layering system. Multiple containers running locally that share the same base image will reuse that image and any of its ancestors.
Each image page names the base it is built on.
The /config volume
To help reduce variation between our images, we have adopted a common structure pattern for application config and dependent directories. This means that each image has its own internal /config directory which holds all application-specific configuration. With the exception of a small number of images, all of our images expose this volume.
We do this because we believe that it makes it easier to answer the common question of “where does the application data get persisted?” - the answer being “always in /config”. If you don’t map this directory when creating your containers, the config will only last as long as the lifespan of the container itself!
Where the images are
Images are published to the GitHub Container Registry as ghcr.io/linuxserver-playground/<name>. The tags every release publishes are described in How a build happens; for day-to-day use latest (or the branch tag such as develop where an image has one) is what you want.
Creating a Container
Every image page carries a ready-made docker compose service and the equivalent docker run command, with every required parameter filled in and the optional ones marked #optional. Start from those rather than from memory. The compose file is also available as a plain file:
curl -fsSL https://linuxserver-playground.github.io/hub/api/v1/catalog/<name>/docker-compose.yml
Each image follows the same pattern when creating a container by hand:
docker create \
--name=<container_name> \
-v <path_to_data>:/config \
-e PUID=<uid> \
-e PGID=<gid> \
-e TZ=<timezone> \
-p <host_port>:<app_port> \
ghcr.io/linuxserver-playground/<image_name>
PUID and PGID make the application inside the container run as the user who owns <path_to_data> on your host; see Understanding PUID and PGID. We recommend Docker Compose over docker create so that the parameters are kept in a file you can read, version and reuse when you update.
Other ways to run them
Docker on Linux is what we build and test against. Each image also has a Podman quadlet, a Kubernetes manifest and templates for the app stores of Unraid, Portainer, CasaOS, Umbrel, Runtipi and Cosmos; those guides say what changes on each platform and what is and is not supported.
Last updated
Edit this page on GitHub (opens in a new tab)