In a general case, we have several folders containing the documentation of the project, the source, ecc. There are many ways to organize your repository. In case you have never created a Docker repository, take a look at the official guide, we will however cover those steps in this tutorial! Set up a Github repositoryįirst of all, we need to setup a Github repository to host our Dockerfile. If this is your first time working with Github, take a look at this great introductory tutorial to get started! Watch Out! If you are using Linux, you have to run all of the docker commands using sudo or it will not work.įor this tutorial I will assume that you have some basic knowledge of how to create a Github repository. If you are using Linux, you can find here a guide on how to install Docker. If you are using Windows or Mac, I suggest that you install Docker for Windows/Mac. In case you need help installing Docker, you can find a detailed guide here on the Docker website.
In this tutorial we will learn how to build a Dockerfile hosted at Github in a completely automated way, using Docker Hub. Build a Docker Image from a Github Repository