Docker-Ubuntu-Python3 Usage In your shell type : docker-compose up You will see the result of your python code. This is the way you need to run your python code with ubuntu as base image for your Dockerfile.