microsoft/Windows-Containers

Permission denied when docker pull

Closed this issue · 1 comments

I want to pull docker image "mcr.microsoft.com/windows/servercore:ltsc2019", but when pull image, display message

Window - "request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.45/images/create?fromImage=mcr.microsoft.com%2Fwindows%2Fservercore&tag=ltsc2019, check if the server supports the requested API version"

Linux - "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/images/create?fromImage=mcr.microsoft.com%2Fwindows%2Fservercore&tag=ltsc2019": dial unix /var/run/docker.sock: connect: permission denied"

How can I do when pull image?

I found the answer.

When you use Docker Desktop on Window, you should option "swicth to Window containers".

image

This image display "switch to Linux container", because I already switch to window.