上QQ阅读APP看书,第一时间看更新
Installing Docker
In order to be able to build and run containers, you must first install the Docker execution environment on your computer.
Windows support of Docker can be challenging. You must have a PC with a CPU that supports virtualization extensions, which is not a guarantee on laptops. You must also have a Pro version of Windows with Hyper-V enabled. On the flip side, Windows Server 2016 has native support for Docker, which is an unprecedented amount of support shown by Microsoft toward the industry initiative to adopt Docker and containerization.
- Install Docker by executing the following command:
For Windows:
PS> choco install docker docker-for-windows -y
For macOS:
$ brew install docker
- Execute docker -v to verify the installation.