How to create and share Docker image

In this artice I'll describe, how to create and share a very simple Ubuntu-based distibutive with python and mono.
Create directory, with name docker. Create a file, named Dockerfile in it.
mkdir docker
cd docker
mcedit Dockerfile ​​​​​​​
Place this content to the file Dockerfile :
# Set the base image
FROM ubuntu

# Dockerfile author / maintainer 
MAINTAINER Name <[email protected]> 

RUN echo "Europe/Dublin" > /etc/timezone
RUN apt-get update && apt-get install -y tzdata
RUN dpkg-reconfigure -f noninteractive tzdata

# Step for building Python 3.3.5
RUN apt-get install -y build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev

RUN apt-get install -y wget sudo

RUN apt-get install -y zlib1g-dev libbz2-dev apt-utils

RUN wget
RUN tar xJf ./Python-3.3.5.tar.xz
RUN cd ./Python-3.3.5; ./configure --prefix=/opt/python3.3
RUN cd ./Python-3.3.5; make -j4
RUN cd ./Python-3.3.5; sudo make -j4 install

RUN mkdir ~/bin
RUN ln -s /opt/python3.3/bin/python3.3 ~/bin/python
RUN ln -s /opt/python3.3/bin/python3.3 /bin/python
RUN python --version

# Show Ubuntu version
RUN apt-get install -y lsb-release
RUN lsb_release -a

# Installing mono
RUN sudo apt-key adv --keyserver hkp:// --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
RUN sudo apt update
RUN sudo apt install -y mono-devel
RUN apt-get install -y binutils ca-certificates-mono mono-vbnc nuget referenceassemblies-pcl curl 
Create an Account
To start using Docker hub, you need to create an account first. You can do that by either visiting the Docker hub homepage or by running:
docker login

Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to to create one.
Username: arturlwww
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See

Are you sure you want to proceed? [y/N] y
Login Succeeded
Build your image:
docker build  -t arturlwww/ubuntu_python_mono .
Create a new repo at the page and publish your distributive:
docker push arturlwww/ubuntu_python_mono