-
Notifications
You must be signed in to change notification settings - Fork 11
Windows docker installation
bjjwwang edited this page May 10, 2024
·
3 revisions
Try the following steps or Docker's official installation guide on Windows solutions
1. If you try to run docker engine in Windows but it displays
C:\Projects> docker version
Client:
Version: 1.13.0-dev
API version: 1.25
Go version: go1.7.3
Git commit: d8d3314
Built: Tue Nov 1 03:05:34 2016
OS/Arch: windows/amd64
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/version: open //./pipe/docker_engine: The system cannot find the file
specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
or
Unable to start Docker on Windows 10. Getting the error: "Cannot enable Hyper-V service".
This settings in Win-10 - features is ON.
log.txt
Please recommend.
Diagnostic id: 90B3DB52-FDE9-4770-AF95-0F87C69FE58D/20200517174003
-
Solutions:
- First, you should make sure your windows system is at least Win 10 Pro 19041 or higher. If not, you can upgrade your system to the latest version.
- Then try the fllowing steps or Docker's official installation guide on Windows solutions
2. Failure in installing or starting Docker Desktop.
-
Solutions:
- Ensure your Windows version supports WSL 2. Docker Desktop for Windows requires the Windows 10 update (Build 19041 or later) or Windows 11.
- Install or update WSL 2 by running the following command in PowerShell:
wsl --install
- Verify that both the Virtual Machine Platform and Windows Subsystem for Linux features are enabled in Windows Features.
3. Integration failure between Docker Desktop and WSL 2.
-
Solutions:
- Enable WSL 2 support in Docker Desktop settings. Navigate to Docker Desktop, enter Settings -> General, and check “Use the WSL 2 based engine.”
- Ensure Docker is set to integrate with a specific Linux distribution. Go to Settings -> Resources -> WSL Integration and ensure your desired distribution is enabled.
4. Unable to access external networks from Docker containers.
-
Solutions:
- Check the Windows Firewall settings to ensure that Docker-related network activity is not blocked.
- Restart Docker services by executing:
This shuts down all running WSL instances and restarts Docker Desktop.
wsl --shutdown
5. File system permission errors, particularly when mounting directories from the Windows file system into Docker containers.
-
Solutions:
- Use the Linux file system to store files that need to be mounted to Docker to avoid permission and performance issues.
- Adjust permissions in the Windows folder, or use appropriate user and group identifiers in Docker commands.