Python is a programming language that lets you work quickly and integrate systems more effectively.
2.3K
Dockerfile links2.7.14, 2.7, 2 (2.7/Dockerfile)2.7.13 (2.7/Dockerfile)3.6.4, 3.6, 3, latest (3.6/Dockerfile)3.6.2 (3.6/Dockerfile)3.6.1 (3.6/Dockerfile)3.6.0 (3.6/Dockerfile)Python is an interpreted, interactive, object-oriented, open-source programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C++. It is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many Unix variants, on the Mac, and on Windows 2000 and later.

Dockerfile in your Python app projectFROM butter/python:3.6.2
CMD [ "python", "./your-daemon-or-script.py" ]
or (if you need to use Python 2):
FROM butter/python:2.7.13
CMD [ "python", "./your-daemon-or-script.py" ]
For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Python script by using the Python Docker image directly:
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp butter/python:3 python your-daemon-or-script.py
or (again, if you need to use Python 2):
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp butter/python:2 python your-daemon-or-script.py
Content type
Image
Digest
Size
190.1 MB
Last updated
over 8 years ago
docker pull butter/python