V
V
Victor P.2018-06-09 13:44:50
Windows
Victor P., 2018-06-09 13:44:50

How to get started with Docker on Windows?

Good afternoon!
I need to publish a .net core application on linux. I work from under Windows and found that containers are used to facilitate integration.
I wanted to deal with docker, I went to the site
https://docs.docker.com/docker-for-windows/
registered, downloaded clients, I press the first step:
C:\Users\Pobochniy>docker run hello-world
But instead of downloading this hello-world, I get an error:

Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

I followed the link and there is such a json-chik:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

When launching the client through a shortcut from the desktop using the link, I registered on the site https://cloud.docker.com and is currently logged in there under my account.
After the first login, now by double clicking on the docker shortcut from the desktop, it feels like nothing is happening, but I see the docker process running in the tray, that is, it is running.
What is my problem, does anyone know?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Tsvetkov, 2018-06-09
@Jeer

I had something similar when the RKN decided that docker was evil, I decided by using a proxy for docker

D
Dima, 2018-06-15
@CrazyFail

Not your case, probably, although it is indicated about authorization in JSON'e.
In Docker for Windows, the user can be authorized by e-mail, and docker-cli is authorized by Docker ID.
Then you need to log in to Docker for Windows using DockerID (not e-mail). For them, these are different things and it was discussed on GitHub

A
Allekc, 2018-06-16
@Allekc

Sometimes, this may be related to DNS, try in the Docker settings, on the network tab, specify fixed for DNS and the address 8.8.8.8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question