Hello,
I’m trying to install python in my radarr and sonarr containers according to the instructions given on this page: Customizing our Containers | LinuxServer.io .
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
#!/bin/bash
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] python.sh: executing...`
`**** installing python ****`
`/config/custom-cont-init.d/python.sh: line 4: apk: command not found`
`[custom-init] python.sh: exited 127`
driz
27 June 2022 18:08
4
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 lscr.io
This is not helpful. Please post your compose and also your custom script that you’re trying to run.
Custom script to install python
#!/bin/bash
echo "**** installing python ****"
apk add install python3.8
Docker compose below
radarr:
image: lscr.io/linuxserver/radarr:latest
container_name: radarr
environment:
- PUID=1000
- PGID=1000
- UMASK_SET=022
- TZ=Europe/London
- DOCKER_MODS=ghcr.io/gilbn/theme.park:radarr
- TP_THEME=plex
volumes:
- C:/Docker/docker-services/radarr/config:/config
- C:/Docker/media-server/Import Scripts:/scripts
ports:
- 7878:7878
restart: unless-stopped
driz
18 July 2022 14:08
8
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.