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

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.

主站蜘蛛池模板: 广宗县| 崇义县| 峨眉山市| 镶黄旗| 苏尼特右旗| 德安县| 洮南市| 新营市| 岳西县| 佛山市| 内黄县| 镇赉县| 鲁甸县| 芦溪县| 高清| 新野县| 德州市| 安国市| 茌平县| 察哈| 杨浦区| 古丈县| 泰兴市| 榕江县| 湛江市| 屯昌县| 玉树县| 蒙城县| 修文县| 册亨县| 正安县| 乌兰县| 化德县| 鄂伦春自治旗| 浦县| 田东县| 普陀区| 八宿县| 旺苍县| 华阴市| 奎屯市|