Sign in

For first-time users of Docker. We would like to display “Hello world” in a web browser.

Sourced by

Using PC: Macbook

First of all, You have to prepare this.

You need to download “Docker Desktop for Mac” from this link.

And I used this repository. Thank you so much!!

Moving to Hello world.

$ cd /Users/yourName/yourDirectory/training-docker/02_dockerfile/helloworld

Let’s create a Docker image from a Dockerfile.

docker build -t [Image name to generate]:[tags] [Place of Dockerfile(omission)]

$ docker build -t helloworld:v1 .

Then, you’ll get this message in the terminal.

[+] Building 55.1s (8/8) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 362B 0.0s=> [internal]…

I had a big problem, “Permission denied” when I tried to push it to my repository on Github.

In conclusion, you can do this command.

$ git remote set-url origin$ git push origin master
Password for '':yourPassWord

Use your own expressions for the following ones.



You know, this is the kind of problem I encountered when I was developing an open-source program.

$ git push origin masterremote: Permission to someoneUserNameForGithub/someoneRepositoryName.git denied to myNameForGithub.fatal: unable to access '': The requested URL returned error: 403

This error occurs no matter how many times I push.



Re:Life in developing from ZERO. | Web developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store