Sign in

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

Sourced by https://icon-library.com/

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!!

https://github.com/zoetrope/training-docker

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.

・myNameForGithub

・myRepositoryName

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.

So…

tomomemo

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