docker 初探之簡單安裝 ----Windows10


報錯一

$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
K:\Docker Toolbox\docker.exe: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy..
See 'K:\Docker Toolbox\docker.exe run --help'.

打開Docker Quickstart Terminal

#docker-machine ssh default

#sudo vi /var/lib/boot2docker/profile


export 'HTTPS_PROXY=http://PROXY:PORT'

docker@default:~$ sudo /etc/init.d/docker restart
    Need TLS certs for default,127.0.0.1,10.0.2.15,192.168.99.100 

docker@default:~$ exit

報錯二

#docker build -t docker-whale .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\Users\Administrator\Desktop\testdocker\Dockerfile: The system cannot find the file specified.

解決方法

docker build -t docker-whale  -f /Dockerfiler .

如果當時建的文件是Dockerfile應該就不會出現這個問題了,如果不是就要自己指定一下文件名稱


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM