If you want your container (which Tensorflow has already been preinstalled since it works with the Tensorflow image) to access the script page, you need to set that script from the host to the local path in the container.
docker run -v /path/to/your/script:/path/to/script
See " Set host file as data volume. "
The -v flag can also be used to mount a single file, and not just directories - from the host machine.
$ docker run --rm -it -v ~/.bash_history:/.bash_history ubuntu /bin/bash
Then from your container you will get access to the same script in /path/to/script .
Alex Pryiomka gives an example of how such a script works in tensorflow with β
source share