官术网_书友最值得收藏!

Verifying the installation

Now, let's verify whether the installation was successful:

  1. Confirm that the Docker Client is working properly by opening Powershell and executing the following command:
docker version
  1. You should see an output similar to the following:
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:31 2019
OS/Arch: windows/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: false
  1. Run a simple container based on the official Powershell image:
docker run -it --rm mcr.microsoft.com/powershell pwsh -c 'Write-Host "Hello, World!"'

  1. During the first run of this command, the missing container image layers will be downloaded. After some time, you will see Hello, World! written to the console output by Powershell:

  1. Congratulations! You have successfully installed Docker Desktop for Windows and run your first container.

In the next subsection, you will learn how to enable process isolation for containers.

主站蜘蛛池模板: 广丰县| 措美县| 英吉沙县| 临沭县| 太和县| 孝昌县| 隆安县| 石棉县| 嵊州市| 漳州市| 定兴县| 清水河县| 台江县| 汉寿县| 古蔺县| 田东县| 修文县| 灌云县| 广南县| 思茅市| 逊克县| 新和县| 安义县| 江门市| 四平市| 周至县| 通江县| 仙居县| 布尔津县| 光山县| 明溪县| 沂源县| 阜宁县| 庄河市| 通化县| 井冈山市| 白山市| 唐海县| 枣庄市| 长岛县| 浦城县|