I am new on Docker, and i want to know how can i create my first Website using this.
I want to publish a website running on Nginx, but with Git Support so i can edit the website from the running container…
Depends on what you want to achieve, do you want to:
build an image, where you use git, so the container will be the same, until you actively build a new version manually
fetch the latest version of your code everytime you start it? (will give you slower startup times)
The best practice way, would be #1, so when you’re ready to publish a new version, you build a image and start a new container, that way, if you find a critical bug, you can always rollback to the old image.