Function not supported in Docker images

Hello,

I've installed pihole 6 beta bare metal. When I execute the update function

$ pihole -up

I got the message

Function not supported in Docker images

and the update stops.

The variable itself is set to "development-v6". From my understanding the variable is not "null" and the update should be executed (if [ -n "${DOCKER_VERSION}" ]).

BR Christian

pihole -up should work on bare metal, but not Docker.
This should be prevented by


It's strange, that $DOCKER_VERSION is set for you at all.

Please generate a debug log and post the token

I was able to track it down.

/etc/pihole/versions contains the variable

DOCKER_VERSION=development-v6

The file is read in /usr/local/bin/pihole with the line

versionsfile="/etc/pihole/versions"

Due to this the script recognize this environment as an docker environment.

After uncommenting the line in /etc/pihole/versions the script is executed.

For now I'm not able to determine if the file was build/retrieved once during the upgrade from 5 to 6 or if the file was fetched later. Anyway, the update script should make sure that this record does not exist on bare metal setups.