{"status":"OK","last_updated":"2026-11-29 15:34:37+00:00","data":{"image":"sonarr","sections":[{"id":"supported-architectures","title":"Supported Architectures","markdown":"We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).\n\nSimply pulling `ghcr.io/linuxserver-playground/sonarr:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.\n\nThe architectures supported by this image are:\n\n| Architecture | Available | Tag |\n| :----: | :----: | ---- |\n| x86-64 | ✅ | amd64-\\<version tag\\> |\n| arm64 | ✅ | arm64v8-\\<version tag\\> |\n"},{"id":"version-tags","title":"Version Tags","markdown":"This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.\n\n| Tag | Available | Description |\n| :----: | :----: |--- |\n| latest | ✅ | Stable releases from Sonarr |\n| develop | ✅ | Development releases from Sonarr |\n"},{"id":"application-setup","title":"Application Setup","markdown":"Access the webui at `<your-ip>:8989`, for more information check out [Sonarr](https://sonarr.tv/).\n\n### Media folders\n\nWe have set `/tv` and `/downloads` as optional paths, this is because it is the easiest way to get started. While easy to use, it has some drawbacks. Mainly losing the ability to hardlink (TL;DR a way for a file to exist in multiple places on the same file system while only consuming one file worth of space), or atomic move (TL;DR instant file moves, rather than copy+delete) files while processing content.\n\nUse the optional paths if you don't understand, or don't want hardlinks/atomic moves.\n\n<details>\n<summary>Well planned paths</summary>\n\nThe folks over at servarr.com wrote a good [write-up](https://wiki.servarr.com/docker-guide#consistent-and-well-planned-paths) on how to get started with this.\n</details>\n"},{"id":"read-only-operation","title":"Read-Only Operation","markdown":"This image can be run with a read-only container filesystem. For details please [read the docs](https://linuxserver-playground.github.io/site/docs/misc/read-only/).\n"},{"id":"non-root-operation","title":"Non-Root Operation","markdown":"This image can be run with a non-root user. For details please [read the docs](https://linuxserver-playground.github.io/site/docs/misc/non-root/).\n"},{"id":"usage","title":"Usage","markdown":"To help you get started creating a container from this image you can either use docker-compose or the docker cli.\n\n> [!NOTE]\n> Unless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided.\n\n### docker-compose (recommended, [click here for more info](https://linuxserver-playground.github.io/site/docs/general/docker-compose))\n\n```yaml\n---\nservices:\n  sonarr:\n    image: ghcr.io/linuxserver-playground/sonarr:latest\n    container_name: sonarr\n    environment:\n      - PUID=1000\n      - PGID=1000\n      - TZ=Etc/UTC\n    volumes:\n      - /path/to/sonarr/data:/config\n      - /path/to/tvseries:/tv #optional\n      - /path/to/downloadclient-downloads:/downloads #optional\n    ports:\n      - 8989:8989\n    restart: unless-stopped\n```\n\n### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))\n\n```bash\ndocker run -d \\\n  --name=sonarr \\\n  -e PUID=1000 \\\n  -e PGID=1000 \\\n  -e TZ=Etc/UTC \\\n  -p 8989:8989 \\\n  -v /path/to/sonarr/data:/config \\\n  -v /path/to/tvseries:/tv `#optional` \\\n  -v /path/to/downloadclient-downloads:/downloads `#optional` \\\n  --restart unless-stopped \\\n  ghcr.io/linuxserver-playground/sonarr:latest\n```\n"},{"id":"parameters","title":"Parameters","markdown":"Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.\n\n| Parameter | Function |\n| :----: | --- |\n| `-p 8989:8989` | The port for the Sonarr web interface |\n| `-e PUID=1000` | for UserID - see below for explanation |\n| `-e PGID=1000` | for GroupID - see below for explanation |\n| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |\n| `-v /config` | Database and sonarr configs |\n| `-v /tv` | Location of TV library on disk (See note in Application setup) |\n| `-v /downloads` | Location of download managers output directory (See note in Application setup) |\n| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://linuxserver-playground.github.io/site/docs/misc/read-only/). |\n| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://linuxserver-playground.github.io/site/docs/misc/non-root/). |\n"},{"id":"environment-variables-from-files-docker-secrets","title":"Environment variables from files (Docker secrets)","markdown":"You can set any environment variable from a file by using a special prepend `FILE__`.\n\nAs an example:\n\n```bash\n-e FILE__MYVAR=/run/secrets/mysecretvariable\n```\n\nWill set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.\n"},{"id":"umask-for-running-applications","title":"Umask for running applications","markdown":"For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional `-e UMASK=022` setting.\nKeep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up [here](https://en.wikipedia.org/wiki/Umask) before asking for support.\n"},{"id":"user-group-identifiers","title":"User / Group Identifiers","markdown":"When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.\n\nEnsure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.\n\nIn this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:\n\n```bash\nid your_user\n```\n\nExample output:\n\n```text\nuid=1000(your_user) gid=1000(your_user) groups=1000(your_user)\n```\n"},{"id":"docker-mods","title":"Docker Mods","markdown":"[![Docker Mods](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=sonarr&message=mods&logo=docker)](https://linuxserver-playground.github.io/site/mods/?image=sonarr \"view available mods for this container.\") [![Docker Universal Mods](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=universal&message=mods&logo=docker)](https://linuxserver-playground.github.io/site/mods/?image=universal \"view available universal mods.\")\n\nWe publish various [Docker Mods](https://github.com/linuxserver-playground/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the badges above.\n"},{"id":"support-info","title":"Support Info","markdown":"* Shell access whilst the container is running:\n\n    ```bash\n    docker exec -it sonarr /bin/bash\n    ```\n\n* To monitor the logs of the container in realtime:\n\n    ```bash\n    docker logs -f sonarr\n    ```\n\n* Container version number:\n\n    ```bash\n    docker inspect -f '{{ index .Config.Labels \"build_version\" }}' sonarr\n    ```\n\n* Image version number:\n\n    ```bash\n    docker inspect -f '{{ index .Config.Labels \"build_version\" }}' ghcr.io/linuxserver-playground/sonarr:latest\n    ```\n"},{"id":"updating-info","title":"Updating Info","markdown":"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](#application-setup) section above to see if it is recommended for the image.\n\nBelow are the instructions for updating containers:\n\n### Via Docker Compose\n\n* Update images:\n    * All images:\n\n        ```bash\n        docker-compose pull\n        ```\n\n    * Single image:\n\n        ```bash\n        docker-compose pull sonarr\n        ```\n\n* Update containers:\n    * All containers:\n\n        ```bash\n        docker-compose up -d\n        ```\n\n    * Single container:\n\n        ```bash\n        docker-compose up -d sonarr\n        ```\n\n* You can also remove the old dangling images:\n\n    ```bash\n    docker image prune\n    ```\n\n### Via Docker Run\n\n* Update the image:\n\n    ```bash\n    docker pull ghcr.io/linuxserver-playground/sonarr:latest\n    ```\n\n* Stop the running container:\n\n    ```bash\n    docker stop sonarr\n    ```\n\n* Delete the container:\n\n    ```bash\n    docker rm sonarr\n    ```\n\n* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)\n* You can also remove the old dangling images:\n\n    ```bash\n    docker image prune\n    ```\n\n### Image Update Notifications - Diun (Docker Image Update Notifier)\n\n> [!TIP]\n> We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.\n"},{"id":"building-locally","title":"Building locally","markdown":"If you want to make local modifications to these images for development purposes or just to customize the logic:\n\n```bash\ngit clone https://github.com/linuxserver-playground/docker-sonarr.git\ncd docker-sonarr\ndocker build \\\n  --no-cache \\\n  --pull \\\n  -t ghcr.io/linuxserver-playground/sonarr:latest .\n```\n\nThe ARM variants can be built on x86_64 hardware and vice versa using `ghcr.io/linuxserver/qemu-static`\n\n```bash\ndocker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset\n```\n\nOnce registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.\n\nEvery push builds and tests the image with the shared workflow in [`linuxserver-playground/workflows`](https://github.com/linuxserver-playground/workflows); every build's tests, screenshots and package changes are on [the image's builds](https://linuxserver-playground.github.io/site/images/sonarr/#builds) on the website.\n"},{"id":"versions","title":"Versions","markdown":"* **2026-10-19:** - Add krb5-libs for better postgresql support.\n* **2026-10-12:** - Update `develop` branch to v5. New v5 installs will write initial credentials to container log.\n* **2026-07-09:** - Workaround malformed ncurses database.\n* **2026-07-04:** - Rebase to Alpine 3.24.\n* **2026-01-15:** - Rebase to Alpine 3.23.\n* **2025-07-05:** - Rebase to Alpine 3.22.\n* **2025-01-09:** - Fix rootless entrypoint.\n* **2024-12-23:** - Rebase Alpine 3.21.\n* **2024-05-31:** - Rebase Alpine 3.20.\n* **2024-01-12:** - Update download url.\n* **2023-12-30:** - Rebase master branch to Alpine 3.19.\n* **2023-02-15:** - Rebase master branch to Jammy.\n* **2022-12-19:** - Rebase develop branch Alpine 3.17.\n* **2022-11-24:** - Bump develop branch to v4, rebase to Alpine 3.16.\n* **2022-08-03:** - Deprecate armhf.\n* **2022-08-02:** - Add armhf deprecation warning.\n* **2022-04-28:** - Rebase master branch to mono 6.12 base (focal).\n* **2022-02-20:** - Rebase develop branch to Alpine, deprecate develop-alpine branch.\n* **2021-12-28:** - Add develop-alpine branch.\n* **2021-05-11:** - Make the paths clearer to the user.\n* **2021-03-10:** - Upgrade to Sonarr v3. Existing users are highly recommended to make a backup prior to update.\n* **2021-01-18:** - Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information.\n* **2020-04-05:** - Move app to /app.\n* **2019-08-01:** - Rebase to Linuxserver LTS mono version.\n* **2019-06-13:** - Add env variable for setting umask.\n* **2019-05-10:** - Rebase to Bionic.\n* **2019-03-23:** - Switching to new Base images, shift to arm32v7 tag.\n* **2019-02-01:** - Multi arch images and pipeline build logic\n* **2017-12-15:** - Fix continuation lines.\n* **2017-07-12:** - Add inspect commands to README, move to jenkins build and push.\n* **2017-04-17:** - Switch to using inhouse mono baseimage, adds python also.\n* **2017-04-14:** - Change to mount /etc/localtime in README, thanks cbgj.\n* **2017-04-13:** - Switch to official mono repository.\n* **2016-09-30:** - Fix umask\n* **2016-09-23:** - Add cd to /opt fixes redirects with althub (issue #25), make XDG config environment variable\n* **2016-09-15:** - Add libcurl3 package.\n* **2016-09-09:** - Add layer badges to README.\n* **2016-08-27:** - Add badges to README.\n* **2016-07-20:** - Rebase to xenial.\n* **2015-08-31:** - Cleanup, changed sources to fetch binarys from. also a new baseimage.\n"}]}}