I need to use Tensorflow on my Windows machine. I have installed Docker, and following these two tutorials (https://runnable.com/docker/python/dockerize-your-python-application and https://civisanalytics.com/blog/engineering/2014/08/14/Using-Docker-to-Run-Python/), I am trying to run my Python script. My Dockerfile is nearly identical to the one in the first tutorial, except that instead of installing pystrich, I'm installing Tensorflow. I've successfully made a Docker image called python-stuff, and I've made a script called my_script.py which just imports Tensorflow and then prints Hello world.
When I run the command docker run python-stuff python my_script.py, I don't get any errrors, but the script does not produce any output. Any ideas?
EDIT: My Dockerfile:
FROM python:3
ADD my_script.py /
RUN pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp35-cp35m-linux_x86_64.whl
CMD ["python", "./my_script.py"]
Running docker logs python-stuff gives Error: No such container: python-stuff
docker logsof your containerpython-stuffis the name of your image, not the container. Rundocker ps --alland you'll see the IDs of all exited containers. Then rundocker logs b6a11- or whatever the ID of the most recent container starts with. Also: what output are you expecting? Does your script generate a file, or write to the console?docker logs <id>produces nothing. The script just imports Tensorflow and prints "Hello world" to console.