Closed 91ajames closed 4 years ago
pfft, im an idiot. figured it out. docker exec -it (pihole-container) bash (location in the container path from outside the container).sh
Predefine Volume: /docker/pihole:/etc/pihole
add a bash file in /docker/pihole
docker exec -it pihole bash /etc/pihole/speedtest.sh
In case any wonders out there for pre auto configuring hands free.
Is there a way to inject this through automation when we set-up Pi-Hole in the yml file in a Docker Container?
I would try accessing the "docker exec -it (mycontainer) bash" from script-a to run a cmd or make a script-b afterwords but it stalls, disconnecting from script-a once accessing docker exec line waiting for input by hand.
Even tried something like *"docker exec -it (mycontainer) /location/.sh"**, but so far, no such luck yet.