Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install Docker using Chocolatey?

I ran

choco install docker-cli
choco install docker-machine
choco install docker-compose
choco install docker-desktop

I tried to test the installation according to the documentation, but got an error.

https://docs.docker.com/get-started/#test-docker-version

# docker --version
Docker version 19.03.1, build 74b1e89

# docker version
Client: Docker Engine - Community
 Version:           19.03.1
 API version:       1.40
 Go version:        go1.12.5
 Git commit:        74b1e89
 Built:             Thu Jul 25 21:17:08 2019
 OS/Arch:           windows/amd64
 Experimental:      false
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/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.

# docker info
Client:
 Debug Mode: false

Server:
ERROR: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/info: 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.
errors pretty printing info

I looked at this question but none of the answers were useful: docker cannot start on windows

I'm using Windows 10.

windows 10 version

Reference: https://chocolatey.org/search?q=docker


I also downloaded an ran the installer directly from Docker.com.

https://hub.docker.com/editions/community/docker-ce-desktop-windows

It only said the existing installation is up to date and exited. There is no whale icon in the system tray.

docker desktop


From Task Manager > Performance > CPU showing virtualization is enabled:

task manager virtualization

like image 835
Chloe Avatar asked Aug 03 '19 02:08

Chloe


2 Answers

There are definitely different ways to install Docker on Windows using Chocolatey, and rather than repeat all of the content here, I would recommend that you take a look at this blog post from Stefan Scherer:

https://stefanscherer.github.io/how-to-install-docker-the-chocolatey-way/

He works for Docker, and he is also a long term user of Chocolatey, and hopefully this blog post will help you get underway.

To summarize though, his TL/DR:

The best experience with Docker on a Windows 10 machine is using the Docker Desktop product. Try to grab an up-to-date Windows 10 Pro machine to be all set for it and then run

choco install docker-desktop
like image 200
Gary Ewan Park Avatar answered Nov 15 '22 06:11

Gary Ewan Park


You'll have to start the program from the start-menu (at least once) to activate and configure the daemon.

enter image description here

like image 23
riezebosch Avatar answered Nov 15 '22 06:11

riezebosch