Docker for Windows and macOS: Installation Guide and Basic Usage
This guide explains how to download, install, and configure Docker on Windows 10 and macOS, covering prerequisites, enabling Hyper‑V, running the installer, adjusting memory settings, and basic Docker commands such as checking info, running hello‑world, launching Ubuntu and Nginx containers, and viewing running containers.
1. Introduction
Docker recently released a stable version that runs on Windows 10 and macOS, making it easier for developers to use Docker on their development machines. The main goals are faster, more reliable local development using hypervisors, tighter tool integration, improved workflow, VPN support, and automatic updates.
Faster and more reliable – local development environments can use hypervisors without needing VirtualBox.
Improved Docker tool integration – all Docker tools can be bound to local applications.
Enhanced development workflow – extensive tooling for code and data, easier access to containers on the local network, and IDEs support online debugging for quicker iteration.
Enterprise network support – easy access to corporate VPN on both Mac and Windows.
All new features are available on Docker 1.12 engine.
Automatic updates for both stable and test releases.
2. Installation Preparation
Requirements: 64‑bit Windows 10 with Hyper‑V enabled.
2.1 Download Docker for Windows
Download the installer from the official site:
https://download.docker.com/win/stable/InstallDocker.msi
2.2 Enable Hyper‑V on Windows 10
Control Panel → Programs → Turn Windows features on or off → check Hyper‑V.
After enabling, the system will restart automatically.
3. Install Docker
Run the downloaded MSI to install Docker, then start the Docker application. If Hyper‑V was not enabled, Docker will prompt you to enable it.
If you encounter a memory‑insufficient error during startup, adjust the VM memory size in Docker's settings.
4. Using Docker
4.1 View version and system information
docker info4.2 Run hello‑world
docker run hello-world4.3 Launch an Ubuntu container
docker run -it ubuntu bash4.4 List all containers
docker ps -a4.5 Launch an Nginx container
docker run -d -p 81:80 --name webserver nginxView running containers:
docker psConfirm access via a browser:
5. Conclusion
Docker now offers a stable version that runs on Windows 10 and macOS, allowing you to try it in production environments.
Related articles:
docker4dotnet #1 – History & Hello World
docker4dotnet #2 Container Host
Docker – 10 Things You Should Know
docker4dotnet #3 Using VSC and Docker on macOS for ASP.NET Core + MySQL
Original source: http://www.cnblogs.com/ee900222/p/docker_4.html
Please follow the WeChat public account devopshub for more DevOps information.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
DevOps
Share premium content and events on trends, applications, and practices in development efficiency, AI and related technologies. The IDCF International DevOps Coach Federation trains end‑to‑end development‑efficiency talent, linking high‑performance organizations and individuals to achieve excellence.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
