我在Windows 10 Pro上,使用Docker for Windows,使用Linux容器
docker login -u username -p password
我也经常遇到这个问题,不仅仅是httpd,还有django和mysql。等
> docker container run -p 8080:80 -d --name n2 httpd
Unable to find image 'httpd:latest' locally
latest: Pulling from library/httpd
3d77ce4481b1: Downloading
73674f4d9403: Download complete
d266646f40bd: Download complete
ce7b0dda0c9f: Download complete
01729050d692: Download complete
014246127c67: Download complete
7cd2e04cf570: Download complete
docker: unauthorized: authentication required.
See 'docker run --help'.