- Hands-On Kubernetes on Windows
- Piotr Tylenda
- 170字
- 2021-06-24 16:53:57
Verifying the installation
Now, let's verify whether the installation was successful:
- Confirm that the Docker Client is working properly by opening Powershell and executing the following command:
docker version
- 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
- Run a simple container based on the official Powershell image:
docker run -it --rm mcr.microsoft.com/powershell pwsh -c 'Write-Host "Hello, World!"'
- 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:
- 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.
推薦閱讀
- JBoss Weld CDI for Java Platform
- Mastering JavaScript Functional Programming
- Java 9 Programming Blueprints
- 64位匯編語言的編程藝術(shù)
- Elastic Stack應(yīng)用寶典
- Mastering Rust
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)習(xí)題解答與上機指導(dǎo)
- Python機器學(xué)習(xí)基礎(chǔ)教程
- Extending Unity with Editor Scripting
- Learning Python Data Visualization
- PowerDesigner 16 從入門到精通
- MySQL核心技術(shù)與最佳實踐
- Building E-Commerce Solutions with WooCommerce(Second Edition)
- 測試基地實訓(xùn)指導(dǎo)
- The C++ Workshop