For first-time users of Docker. We would like to display “Hello world” in a web browser.
Using PC: Macbook
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 myNameForGithub@github.com/myNameForGithub/myRepositoryName.git$ git push origin master
Password for 'https://myNameForGithub@github.com':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 'https://github.com/someoneUserNameForGithub/someoneRepositoryName.git/': The requested URL returned error: 403
This error occurs no matter how many times I push.