Hosting Docker Containers on Azure - Part 2
In the previous part, we created a Docker host OS on Azure. Now that we have a host OS ready, we can create different containers on top of it. In this post we will create a mongodb container and host it on our azure host OS. There are multiple ways to do this. In here we are trying a more reusable way: Creating Dockerfile Building an image based on the Dockerfile Pushing the image to Docker Hub repository Run a new container on Azure Creating Dockerfile Dockerfile is like a step by step instructions file that tells docker how to create an image. It is easier to maintain, share, and reuse them. There is a complete manual about it here. Github is full of dockerfiles created by others. In this case we are going to dockerize mongodb. I changed an existing dockerfile in this manual. ...