Sign in

sonarr

4.0.20.3014-ls10

Sonarr (formerly NZBdrone) is a PVR for usenet and bittorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.

docker pull ghcr.io/linuxserver-playground/sonarr:latest
4.0.20.3014-ls10 · amd64 · CI screenshot · test report

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.

Required
Database and sonarr configs
The port for the Sonarr web interface
Optional settings4

Tick what you need; it is added to every output with its value.

Mods

1 for sonarr, 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:
  sonarr:
    image: ghcr.io/linuxserver-playground/sonarr:latest
    container_name: sonarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/sonarr/data:/config
    ports:
      - 8989:8989
    restart: unless-stopped

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

  • Replace the /path/to folders with real folders on your host; they are created if missing.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releases from Sonarrbranch master · stable4.0.20.3014-ls10amd64 · arm64 passed
:developDevelopment releases from Sonarrbranch develop · prereleasedevelop-5.0.0.3041-ls9amd64 · 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/sonarr:4.0.20.3014-ls10

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine:3.24
Upstream version
4.0.20.3014
amd64 compressed
83.8 MB · 9 layers
arm64 compressed
81.7 MB · 9 layers
amd64 packages
734 · Alpine Linux v3.24
arm64 packages
734 · 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.

sonarr on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
develop → :developsuccess
5.0.0.3041
? unknown––
master → :latestsuccess
4.0.20.3014
? unknown––

Application setup#

Access the webui at <your-ip>:8989, for more information check out Sonarr.

Media folders

We 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.

Use the optional paths if you don’t understand, or don’t want hardlinks/atomic moves.

Well planned paths

The folks over at servarr.com wrote a good write-up on how to get started with this.

Parameters#

Ports#
PortFunctionRequired
8989:8989The port for the Sonarr web interfacerequired
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
Volumes#
PathFunctionRequired
/configDatabase and sonarr configsrequired
/tvLocation of TV library on disk (See note in Application setup)optional
/downloadsLocation of download managers output directory (See note in Application setup)optional

Read-Only Operation#

This image can be run with a read-only container filesystem. For details please read the docs.

Non-Root Operation#

This image can be run with a non-root user. For details please read the docs.

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

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. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

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.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

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 sonarr
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d sonarr
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/sonarr:latest
  • Stop the running container:

    docker stop sonarr
  • Delete the container:

    docker rm sonarr
  • 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)

  • 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-playground/docker-sonarr.git
cd docker-sonarr
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/sonarr:latest .

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

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

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

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 14 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
4.0.20.3014-ls10master · 44c908b2weekly package checkpackagessuccess83.8 MB amd6481.7 MB arm64
develop-5.0.0.3041-ls9develop · 6aaf9357weekly package checkbasesuccess93.4 MB amd6491.2 MB arm64
4.0.20.3014-ls9master · 172988d1weekly package checkbasesuccess83.8 MB amd6481.7 MB arm64
develop-5.0.0.3041-ls8develop · 1393edfeupstream checkmixedsuccess93.5 MB amd6491.3 MB arm64
4.0.20.3014-ls8master · 4fd1e733weekly package checkbasesuccess83.8 MB amd6481.8 MB arm64
develop-5.0.0.2997-ls7develop · 1e57c3deupstream checkmixedsuccess93.4 MB amd6491.2 MB arm64
develop-5.0.0.2941-ls6develop · bca7aaf5weekly package checkbasesuccess92.8 MB amd6490.7 MB arm64
4.0.20.3014-ls7master · 3ed952b3weekly package checkpackagessuccess83.8 MB amd6481.8 MB arm64
4.0.20.3014-ls6master · 743f6849weekly package checkbasesuccess83.8 MB amd6481.8 MB arm64
develop-5.0.0.2941-ls5develop · bca7aaf5upstream checkmixedsuccess92.8 MB amd6490.7 MB arm64
Older releases14Release, run record and run on GitHub
Older releases of sonarr, without a page on this site
TagBuiltLinks
develop-5.0.0.2907-ls5developRelease develop-5.0.0.2907-ls5 on GitHub (opens in a new tab)run.json of develop-5.0.0.2907-ls5Run that built develop-5.0.0.2907-ls5, on GitHub (opens in a new tab)
4.0.20.3014-ls5masterRelease 4.0.20.3014-ls5 on GitHub (opens in a new tab)run.json of 4.0.20.3014-ls5Run that built 4.0.20.3014-ls5, on GitHub (opens in a new tab)
develop-5.0.0.2870-ls5developRelease develop-5.0.0.2870-ls5 on GitHub (opens in a new tab)run.json of develop-5.0.0.2870-ls5Run that built develop-5.0.0.2870-ls5, on GitHub (opens in a new tab)
develop-5.0.0.2838-ls5developRelease develop-5.0.0.2838-ls5 on GitHub (opens in a new tab)run.json of develop-5.0.0.2838-ls5Run that built develop-5.0.0.2838-ls5, on GitHub (opens in a new tab)
develop-5.0.0.2838-ls4developRelease develop-5.0.0.2838-ls4 on GitHub (opens in a new tab)run.json of develop-5.0.0.2838-ls4Run that built develop-5.0.0.2838-ls4, on GitHub (opens in a new tab)
4.0.20.3014-ls4masterRelease 4.0.20.3014-ls4 on GitHub (opens in a new tab)run.json of 4.0.20.3014-ls4Run that built 4.0.20.3014-ls4, on GitHub (opens in a new tab)
develop-5.0.0.2800-ls4developRelease develop-5.0.0.2800-ls4 on GitHub (opens in a new tab)run.json of develop-5.0.0.2800-ls4Run that built develop-5.0.0.2800-ls4, on GitHub (opens in a new tab)
develop-5.0.0.2800-ls3developRelease develop-5.0.0.2800-ls3 on GitHub (opens in a new tab)run.json of develop-5.0.0.2800-ls3Run that built develop-5.0.0.2800-ls3, on GitHub (opens in a new tab)
4.0.20.3014-ls3masterRelease 4.0.20.3014-ls3 on GitHub (opens in a new tab)run.json of 4.0.20.3014-ls3Run that built 4.0.20.3014-ls3, on GitHub (opens in a new tab)
develop-5.0.0.2785-ls3developRelease develop-5.0.0.2785-ls3 on GitHub (opens in a new tab)run.json of develop-5.0.0.2785-ls3Run that built develop-5.0.0.2785-ls3, on GitHub (opens in a new tab)
4.0.20.3014-ls2masterRelease 4.0.20.3014-ls2 on GitHub (opens in a new tab)run.json of 4.0.20.3014-ls2Run that built 4.0.20.3014-ls2, on GitHub (opens in a new tab)
develop-5.0.0.2785-ls2developRelease develop-5.0.0.2785-ls2 on GitHub (opens in a new tab)run.json of develop-5.0.0.2785-ls2Run that built develop-5.0.0.2785-ls2, on GitHub (opens in a new tab)
4.0.20.3014-ls1masterRelease 4.0.20.3014-ls1 on GitHub (opens in a new tab)run.json of 4.0.20.3014-ls1Run that built 4.0.20.3014-ls1, on GitHub (opens in a new tab)
develop-5.0.0.2742-ls1developRelease develop-5.0.0.2742-ls1 on GitHub (opens in a new tab)run.json of develop-5.0.0.2742-ls1Run that built develop-5.0.0.2742-ls1, on GitHub (opens in a new tab)

Mods#

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

All mods for sonarr
  • striptracks

    A Docker Mod for the LinuxServer.io Radarr/Sonarr v3 or higher Docker containers that adds a script to automatically strip out unwanted audio and subtitle tracks, keeping only the desired languages. A Batch Mode is also supported that allows usage outside of Radarr/Sonarr.

    ghcr.io/linuxserver-playground/mods:radarr-striptracks

Plus 13 other universal mods that work with every image.

Reverse proxy#

sonarr listens on http://sonarr:8989.

What you named the sonarr container; SWAG resolves it on the shared network.

Uncomments the matching include lines; API locations stay open so client apps keep working.

  • Save as /config/nginx/proxy-confs/sonarr.subdomain.conf in SWAG (drop the .sample) and restart SWAG.
  • Your DNS needs a record for sonarr.yourdomain.com (a CNAME to the domain, or a wildcard), and SWAG's SUBDOMAINS must cover it.
  • The sonarr container and SWAG must share a user-defined Docker network so the name resolves.
## Version 2026/11/29
# make sure that your sonarr container is named sonarr
# make sure that your dns has a cname set for sonarr

server {
    listen 443 ssl;
#    listen 443 quic;
    listen [::]:443 ssl;
#    listen [::]:443 quic;

    server_name sonarr.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth (requires ldap-location.conf in the location block)
    #include /config/nginx/ldap-server.conf;

    # enable for Authelia (requires authelia-location.conf in the location block)
    #include /config/nginx/authelia-server.conf;

    # enable for Authentik (requires authentik-location.conf in the location block)
    #include /config/nginx/authentik-server.conf;

    # enable for Tinyauth (requires tinyauth-location.conf in the location block)
    #include /config/nginx/tinyauth-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable for ldap auth (requires ldap-server.conf in the server block)
        #include /config/nginx/ldap-location.conf;

        # enable for Authelia (requires authelia-server.conf in the server block)
        #include /config/nginx/authelia-location.conf;

        # enable for Authentik (requires authentik-server.conf in the server block)
        #include /config/nginx/authentik-location.conf;

        # enable for Tinyauth (requires tinyauth-server.conf in the server block)
        #include /config/nginx/tinyauth-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app sonarr;
        set $upstream_port 8989;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }

    location ~ (/sonarr)?/api {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app sonarr;
        set $upstream_port 8989;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

Default sample.

Source: linuxserver-playground.github.io/hub/api/v1/catalog/sonarr/proxy.json

Changelog#

  1. Add krb5-libs for better postgresql support.

  2. Update develop branch to v5. New v5 installs will write initial credentials to container log.

  3. Workaround malformed ncurses database.

  4. Rebase to Alpine 3.24.

  5. Rebase to Alpine 3.23.

  6. Rebase to Alpine 3.22.

  7. Fix rootless entrypoint.

  8. Rebase Alpine 3.21.

32 earlier entries
  1. Rebase Alpine 3.20.
  2. Update download url.
  3. Rebase master branch to Alpine 3.19.
  4. Rebase master branch to Jammy.
  5. Rebase develop branch Alpine 3.17.
  6. Bump develop branch to v4, rebase to Alpine 3.16.
  7. Deprecate armhf.
  8. Add armhf deprecation warning.
  9. Rebase master branch to mono 6.12 base (focal).
  10. Rebase develop branch to Alpine, deprecate develop-alpine branch.
  11. Add develop-alpine branch.
  12. Make the paths clearer to the user.
  13. Upgrade to Sonarr v3. Existing users are highly recommended to make a backup prior to update.
  14. Deprecate UMASK_SET in favor of UMASK in baseimage, see above for more information.
  15. Move app to /app.
  16. Rebase to Linuxserver LTS mono version.
  17. Add env variable for setting umask.
  18. Rebase to Bionic.
  19. Switching to new Base images, shift to arm32v7 tag.
  20. Multi arch images and pipeline build logic
  21. Fix continuation lines.
  22. Add inspect commands to README, move to jenkins build and push.
  23. Switch to using inhouse mono baseimage, adds python also.
  24. Change to mount /etc/localtime in README, thanks cbgj.
  25. Switch to official mono repository.
  26. Fix umask
  27. Add cd to /opt fixes redirects with althub (issue #25), make XDG config environment variable
  28. Add libcurl3 package.
  29. Add layer badges to README.
  30. Add badges to README.
  31. Rebase to xenial.
  32. Cleanup, changed sources to fetch binarys from. also a new baseimage.

Support#

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

  • Shell access whilst the container is running:

    docker exec -it sonarr /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f sonarr
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' sonarr
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/sonarr:latest

Community project

Improve sonarr

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 sonarr image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the sonarr image, test it and draft the PR.
  • Make a mod for sonarr 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

bazarr

v1.6.2-ls12

Bazarr is a companion application to Sonarr and Radarr. It can manage and download subtitles based on your requirements. You define your preferences by TV show or movie and Bazarr takes care of everything for you.

0 GitHub starsalpinearm64

handbrake

1.11.2-ls12

HandBrake is an open-source tool, built by volunteers, for converting video from nearly any format to a selection of modern, widely supported codecs.

0 GitHub starsselkies

kometa

v2.5.5-ls9

Kometa is a powerful tool designed to give you complete control over your media libraries. With Kometa, you can take your customization to the next level, with granular control over metadata, collections, overlays, and much more.

0 GitHub starsalpinearm64

lidarr

3.1.6.5079-ls9

Lidarr is a music collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new tracks from your favorite artists and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.

0 GitHub starsalpinearm64