Python - Official Image | Docker Hub
hub.docker.com › _ › pythonCMD [ "python", "./your-daemon-or-script.py" ] You can then build and run the Docker image: $ docker build -t my-python-app . $ docker run -it --rm --name my-running-app my-python-app Run a single Python script For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile.