docker --version docker info docker image ls docker container ls --all ================================================================ Dockerfile # Use an official Python runtime as a parent image FROM python:2.7-slim # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --trusted-host pypi.python.org -r requirements.txt # Make port 80 available to the world outside this container EXPOSE 80 # Define environment variable ENV NAME World # Run app.py when the container launches CMD ["python", "app.py"] #ENV http_proxy host:port #ENV https_proxy host:port # =============================================================== docker build -t friendlyhello . sudo service docker restart docker run -p 4000:80 friendlyhello docker run -d -p 4000:80 friendlyhello docker login // https://hub....