您的位置:首页 > 运维架构 > Docker

docker 初探之简单安装 ----Windows10

2016-12-21 17:01 591 查看

报错一

$ 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应该就不会出现这个问题了,如果不是就要自己指定一下文件名称

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: