How to assign static public IP to the docker container In this post, we will create a docker container and configure the static public IP so it will be reachable from outside. Here we will use the Linux MAC VLANs and Virtual Ethernets. Prerequisites: Ubuntu host up and running. Public IP should be configured. Docker should be installed. Skip to end of metadata Go to start of metadat PULL UBUNTU DOCKER IMAGE $ docker pull ubuntu:14.04.5 It will download the Ubuntu docker image. Create a container $ docker run -ti --name container-1 --net=none --privileged=true ubuntu:14.04.5 bash This will create a docker container, now we will configure the static public ip to the container. ASSIGNING AN IP FOR A CONTAINER Here I am assuming that host machine is having interface "eth0" with public IP configured. Name of the container is container-1. The below steps needs to ...