How to build a Dockerfile on Windows 10?

Step-by-step Instructions:

  1. Open Visual Studio, and open the folder where your Dockerfile is. Open Visual Studio, and open the folder where your Dockerfile is.
  2. Click Settings bottom then click Extension.
  3. Please install the extension ‘Docker’.
  4. After you install, go ahead and change the Dockerfile. After you finish, save it.
  5. Go to the left side where the file manager is. Go to Dockerfile, highlight it on your mouse, right click, then click build with Docker.
  6. then open cmd.exe to docker login and docker push
  7. Please fill out your username and password for the docker login.
  8. If you then command this ‘docker push username/imagename:tag’, then your image will now be on the Docker Hub.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.