Docker installing on Mac machine
To download Docker Desktop, go to Docker Hub and sign in with your Docker ID
Had to do a signup with docker and get an account, which then gave link to download the docker from
https://hub.docker.com/?overlay=onboarding
Now installed the Docker for Mac from this link below
https://docs.docker.com/docker-for-mac/
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
ca4f61b1923c: Pull complete
Digest: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
It ran the docker successfully with the above.
Great, similarly we can start ngnix server also like below
docker run --detach --publish=80:80 --name=webserver nginx
References:
https://docs.docker.com/docker-for-mac/install/
To download Docker Desktop, go to Docker Hub and sign in with your Docker ID
Had to do a signup with docker and get an account, which then gave link to download the docker from
https://hub.docker.com/?overlay=onboarding
Now installed the Docker for Mac from this link below
https://docs.docker.com/docker-for-mac/
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
ca4f61b1923c: Pull complete
Digest: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
It ran the docker successfully with the above.
Great, similarly we can start ngnix server also like below
docker run --detach --publish=80:80 --name=webserver nginx
References:
https://docs.docker.com/docker-for-mac/install/
No comments:
Post a Comment