Sign in

modmanager

f03af0c1-ls6

Modmanager is a centralised tool for downloading and updating docker mods for all your other Linuxserver containers.

docker pull ghcr.io/linuxserver-playground/modmanager:latest

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Mods

0 for modmanager, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  modmanager:
    image: ghcr.io/linuxserver-playground/modmanager:latest
    container_name: modmanager
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch main · stablef03af0c1-ls6amd64 · arm64 passed

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/modmanager:f03af0c1-ls6

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine:3.24
Upstream version
f03af0c1
amd64 compressed
22.4 MB · 9 layers
arm64 compressed
22.4 MB · 9 layers
amd64 packages
54 · Alpine Linux v3.24
arm64 packages
54 · Alpine Linux v3.24
Tests
passed
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

modmanager on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
main → :latestsuccess
f03af0c1
? unknown––

Application setup#

You can specify mods to download via the DOCKER_MODS environment variable like any other container, or allow discovery through docker by mounting the docker socket into the container (or configuring a suitable alternative endpoint via the built-in DOCKER_HOST environment variable). Whichever option you choose the appropriate DOCKER_MODS environment variable must still be present on the containers that need to install them.

The Modmanager container will download all needed mods on startup and then check for updates every 6 hours; if you’re using docker discovery it will automatically pick up any new mods.

You can then mount your /modcache path into any other Linuxserver container and they will pull their mods from there rather than downloading them each time.

If a mod requires additional packages to be installed, each container will still need to download them each time it is recreated.

Note that the Modmanager container itself does not support applying mods or custom files/services.

Modmanager is only supported for use with Linuxserver images built after 2025-01-01, while it may work with 3rd party containers using our images as a base we will not provide support for them.

Security considerations

Mapping docker.sock is a potential security liability because docker has root access on the host and any process that has full access to docker.sock would therefore also have root access on the host. The docker API has no built-in way to set limitations on access, however, you can use a proxy for docker.sock via a solution like our docker socket proxy, which adds the ability to limit API access to specific endpoints.

Multiple Hosts

Note

Make sure you fully understand what you’re doing before you try and set this up as there are lots of ways it can go wrong if you’re just guessing.

Modmanager can query & download mods for remote hosts, as well as the one on which it is installed. At a very basic level if you’re just using the DOCKER_MODS env and not docker discovery, simply mount the /modcache folder on your remote host(s), ensuring it is mapped for all participating containers.

If you are using docker discovery, our only supported means for connecting to remote hosts is our socket proxy container. Run an instance on each remote host:

Warning

DO NOT expose a socket proxy to your LAN if it allows any write operations (POST=1, ALLOW_RESTART=1, etc) or exposes any API elements that are not absolutely necessary. NEVER expose a socket proxy to your WAN.

  modmanager-dockerproxy:
    image: lscr.io/linuxserver/socket-proxy:latest
    container_name: modmanager-dockerproxy
    environment:
      - CONTAINERS=1
      - POST=0
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    tmpfs:
      - /run
    ports:
      - 2375:2375
    restart: unless-stopped
    read_only: true

And then add it to the DOCKER_MODS_EXTRA_HOSTS env using the full protocol and port, separating multiple servers with a pipe (|), e.g.

  - DOCKER_MODS_EXTRA_HOSTS=tcp://host1.example.com:2375|tcp://host2.example.com:2375|tcp://192.168.0.5:2375

As above you will need to mount the /modcache folder on your remote host(s), ensuring it is mapped for all participating containers.

Parameters#

Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:
    docker compose pull
    • Single image:
    docker compose pull modmanager
  • Update containers:

    • All containers:
    docker compose up -d
    • Single container:
    docker compose up -d modmanager
  • You can also remove the old dangling images:

docker image prune

Via Docker Run

  • Update the image:
docker pull lscr.io/linuxserver/modmanager:latest
  • Stop the running container:
docker stop modmanager
  • Delete the container:
docker rm modmanager
  • You can also remove the old dangling images:
docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-modmanager.git
cd docker-modmanager
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/modmanager:latest .

The ARM variants can be built on x86_64 hardware and vice versa using lscr.io/linuxserver/docker-qemu-static

docker run --rm --privileged lscr.io/linuxserver/docker-qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Builds#

The newest five builds per branch, each with its CI report; 1 older release is on GitHub, listed below.

TagBuiltReasonChangeResultSize
f03af0c1-ls6main · a817a529weekly package checkmixedsuccess22.4 MB amd6422.4 MB arm64
064b4398-ls5main · e0be925dweekly package checkmixedsuccess22.5 MB amd6422.5 MB arm64
5d7f36a3-ls4main · 4bcf106eweekly package checkupstreamsuccess22.5 MB amd6422.5 MB arm64
9c4ddecb-ls3main · d1c7c48aweekly package checkmixedsuccess22.5 MB amd6422.5 MB arm64
e04542ce-ls2main · 1abbdb9bmanual dispatchmixedsuccess22.5 MB amd6422.5 MB arm64
Older releases1Release, run record and run on GitHub
Older releases of modmanager, without a page on this site
TagBuiltLinks
e04542ce-ls1mainRelease e04542ce-ls1 on GitHub (opens in a new tab)run.json of e04542ce-ls1Run that built e04542ce-ls1, on GitHub (opens in a new tab)

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for modmanager

No mod targets modmanager specifically; the 13 universal mods work with every image.

Support#

Questions about running modmanager? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:
docker exec -it modmanager /bin/sh
  • To monitor the logs of the container in realtime:
docker logs -f modmanager
  • Container version number:
docker inspect -f '{{ index .Config.Labels "build_version" }}' modmanager
  • Image version number:
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/modmanager:latest

Community project

Improve modmanager

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the modmanager image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the modmanager image, test it and draft the PR.
  • Make a mod for modmanager that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

socket-proxy

3.4.9-r0-ls6

The Socket Proxy is a security-enhanced proxy which allows you to apply access rules to the Docker socket, limiting the attack surface for containers such as watchtower or Traefik that need to use it.

0 GitHub starsalpinearm64