When I run my container I'm trying to run "docker.py" from the root directory ("/") with "/usr/bin/python". I've checked the source image to ensure the python binary exists, I've uploaded docker.py to the docker image and run it with that binary successfully. However, when I try to create the image and then run the image, I get this error ("EOFError: EOF when reading a line") and I don't know what this means or where to start. Any help is appreciated. Thanks in advance!
cat docker.py
#!/usr/bin/python
my_name = raw_input("Enter your name: ")
print my_name
quit()
cat Dockerfile
FROM python:2.7
ADD docker.py /docker.py
CMD ["/usr/bin/python", "/docker.py"]
docker build .
Sending build context to Docker daemon 175.8MB
Step 1/3 : FROM python:2.7
---> b1d5c2d7dda8
Step 2/3 : ADD docker.py /docker.py
---> f55a19158773
Step 3/3 : CMD ["/usr/bin/python", "/docker.py"]
---> Running in b830da5a2f5b
---> ef5b878d203f
Removing intermediate container b830da5a2f5b
Successfully built ef5b878d203f
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
docker run ef5b878d203f
Enter your name: Traceback (most recent call last):
File "/docker.py", line 2, in <module>
my_name = raw_input("Enter your name: ")
EOFError: EOF when reading a line