Pass messages as file through docker-py

Is there a way to pass messages as a file through docker and execute it on the docker shell?

For instance, if x = “print 12345”, can I pass the value of x as a python file and copy it into my container. Then use shell to run this python file?

  • login password required to access jupyter notebook running in nvidia-docker container
  • How to configure GWT debugging with docker?
  • How to copy docker volume to local?
  • How do pods in Google Container Engine talk/link to each other
  • Where does Docker know where to pull the .sh scripts from when building a Dockerfile?
  • Does docker storage driver matter for applications that don't write a lot?
  • Port forwarding with docker for wordpress
  • Unable to back up persistent storage container for docker MariaDB container
  • How to restore a redis backup in a redis container?
  • How to configure an Hbase cluster in fully distributed mode using Docker
  • Pyside fail to show tooltip and specific events in Linux
  • Connectivity issue to Cassandra cluster from Docker container (Java)
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.