You can run commands inside the docker image. Same problem, webpassword variable doesn't work.
run
sudo docker ps -a
or
sudo docker container ls
get the container ID and then run
sudo docker exec -it "ContainerID" pihole setpassword
If you value your time and sanity, I'd advise staying as far away as possible from docker.