Customising Radarr and Sonarr containers not working


I’m trying to install python in my radarr and sonarr containers according to the instructions given on this page: Customizing our Containers |

However, docker complains that the apk command cannot be found. I’m not sure how to proceed with installing python for the containers.

I am using Docker on a Windows 10 machine.

Any help would be appreciated, thanks!

How about posting exactly what you tried and what error you got? docker complains about apk is as vague as it gets.

Apologies for not being more specific about the issue.

Below is the script I’m trying to run on the start of the docker container


echo "**** installing python ****"
apk add install python3.8

Below is the logs from the docker container

`[cont-init.d] 99-custom-scripts: executing... `

`[custom-init] files found in /config/custom-cont-init.d executing`

`[custom-init] executing...`

`**** installing python ****`

`/config/custom-cont-init.d/ line 4: apk: command not found`

`[custom-init] exited 127`

which container is this error from? what tags are you running for radarr and sonarr?

please don’t make us pull teeth to help you.

This particular error is from the radarr container. I am using the latest radarr docker image from

This is not helpful. Please post your compose and also your custom script that you’re trying to run.

Custom script to install python


echo "**** installing python ****"
apk add install python3.8

Docker compose below

    container_name: radarr
      - PUID=1000
      - PGID=1000
      - UMASK_SET=022
      - TZ=Europe/London
      - TP_THEME=plex
      - C:/Docker/docker-services/radarr/config:/config
      - C:/Docker/media-server/Import Scripts:/scripts
      - 7878:7878
    restart: unless-stopped

I believe you need to use wsl linux paths to make things work reliably on windows. (note that we don’t support docker on windows at all, but using wsl paths tends to fix issues)

I would expect your error on sonarr because it’s not alpine, so apk would not be found. Radarr is alpine and this should work fine.

Either way, it may be best for you to come into discord for support with this.