Install Docker:
wget -qO- https://get.docker.com/ | shAdd your username to docker group to run docker commands without sudo:
sudo usermod -aG docker yourusernameHere, logout from your machine (warning: this will close all your active windows). After logging in you can check if Docker is installed by running a dummy container (this will download a container named 'hello-world'):
docker run hello-worldInstall dockerized python containers. Just for comparison, I installed two versions. See official python images list here
docker pull python:3.5.2-alpine
docker pull python:3.5.2-slimExample -- read hostname:
docker run python:3.5.2-alpine python -c "from socket import gethostname; print(gethostname())"Example -- read installed modules:
docker run python:3.5.2-slim python -c "help('modules')"