macOS mounting Docker Desktop CE (rpm)

Now basically use docker deployment projects, we still have to learn, if necessary, on introduction docker here is not described in this article reprinted from https://yeasy.gitbooks.io/docker_practice/content/install/mac.html
if you not macOS system can also be posted on my gitbook to find out the corresponding system installation method, or a sense of the series of big thank god article

Installation Docker Desktop CE macOS

System Requirements

Docker Desktop for Mac minimum system requirements for the macOS Sierra 10.12.

installation

Use Homebrew Installation

Homebrew The Cask has supported Docker Desktop for Mac, so you can easily use to install Homebrew Cask:

$ brew cask install docker

run

Find Docker icon from the application and click Run.

After running, you will see in the upper right corner of the menu bar more than a whale icon that indicates the operation status of Docker.

First click on the icon, you may see the successful installation of the interface, click on "Got it!" Can close this window.

After each click whale icon will pop up a menu operation.

After starting the terminal, you can check the version after installation by Docker command.

$ docker --version
Docker version 19.03.1, build 74b1e89
$ docker-compose --version
docker-compose version 1.24.1, build 4667896b
$ docker-machine --version
docker-machine version 0.16.1, build cce350d7

If docker version, docker info are normal, you can try to run a Nginx server:

$ docker run -d -p 80:80 --name webserver nginx

After the service is running, you can access http://localhost, if you see "Welcome to nginx!", shows Docker Desktop for Mac installation was successful.

To stop Nginx server and delete the following command:

$ docker stop webserver
$ docker rm webserver

Mirror accelerate

If you find that in the course of pulling Docker image is very slow, you can configure Docker domestic mirroring accelerated.

For users macOS, and click on the taskbar icon Docker Desktop Applications -> Perferences, select Docker Engine in the left navigation menu, the same as on the right side below the edit json file. After modifications are complete, click Apply & Restart button, Docker will restart and apply the configuration of the mirror address.

{
  "registry-mirrors": [
    "https://dockerhub.azk8s.cn",
    "https://reg-mirror.qiniu.com"
  ]
}

Check the accelerator is in effect
executed $ docker info, if seen from the following results, the configuration was successful.

Registry Mirrors:
 https://dockerhub.azk8s.cn/

Guess you like

Origin www.cnblogs.com/zhenghengbin/p/11619015.html