Recently Google introduces the TensorFlow (machine learning library) which is not distributed for Windows I searched and find that it is possible to download it via Docker, I installed the docker on windows 8.1 machine and followed this and this to get things work but since I am using a local proxy then I tried to export HTTP_PROXY, HTTPS_PROXY to /var/lib/boot2docker/profile file and now when I run below command
docker pull b.gcr.io/tensorflow/tensorflow
I get
Using default tag: latest Error response from daemon: unable to ping registry endpoint https://b.gcr.io/v0/ v2 ping attempt failed with error: Get https://b.gcr.io/v2/: http: error connecting to proxy https://localhost:8580: dial tcp 127.0.0.1:8580: connection refused v1 ping attempt failed with error: Get https://b.gcr.io/v1/_ping: http: error connecting to proxy https://localhost:8580: dial tcp 127.0.0.1:8580: connection refused
Can someone tell me how to fix this ?
my docker-machine's profile
If you are using docker-machine, you shouldn't have to tinker directly with the docker daemon profile.
Use the
--engine-env
option when creating your VM instance for docker.See
docker-machine create
.Simply define
%HOME%/.bashrc
(which will be read when you open your bash session, before doing an ssh to your VM)Make sure your htt(s)_proxy are defined with:
(note that it always starts with
http://
even forhttps_proxy
)Also make sure to define
no_proxy
:(replace
.company
by your company extension)From there, you can do a:
The key here is the
dmcv
alias: it will create the VM with a/var/lib/boot2docker/profile
already modified for you with proxy.Note that I always use the upercase and lowercase versions of those proxy variables, in order to be interpreted by different unix commands (like curl, wget, ...) which rely sometime on lowercase, other times on upercase variable names.