tensorflow-deep-learning
tensorflow-deep-learning copied to clipboard
tensorflow/Dockerfile.cpu: no such file or directory
Instructions fail from https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/docker
$ git clone https://github.com/tensorflow/tensorflow
$ docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
ubuntu@ubuntu-virtual-machine:~/tensorflow$ docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/ubuntu/tensorflow/Dockerfile.cpu: no such file or directory
then
ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$ ls -l
total 44
-rw-rw-r-- 1 ubuntu ubuntu 569 Nov 26 00:01 BUILD
-rw-rw-r-- 1 ubuntu ubuntu 2379 Nov 26 00:01 Dockerfile.cpu
-rw-rw-r-- 1 ubuntu ubuntu 908 Nov 26 00:01 Dockerfile.gpu_base
-rw-rw-r-- 1 ubuntu ubuntu 1130 Nov 26 00:01 Dockerfile.lite
-rwxrwxr-x 1 ubuntu ubuntu 1359 Nov 26 00:01 docker_run_gpu.sh
-rw-rw-r-- 1 ubuntu ubuntu 0 Nov 26 00:01 __init__.py
-rw-rw-r-- 1 ubuntu ubuntu 815 Nov 26 00:01 jupyter_notebook_config.py
-rw-rw-r-- 1 ubuntu ubuntu 586 Nov 26 00:01 LICENSE
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 26 00:01 notebooks
-rw-rw-r-- 1 ubuntu ubuntu 3294 Nov 26 00:01 README.md
-rwxrwxr-x 1 ubuntu ubuntu 713 Nov 26 00:01 run_jupyter.sh
-rw-rw-r-- 1 ubuntu ubuntu 1016 Nov 26 00:01 simple_console.py
ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$
sudo docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
gives
ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$ sudo docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
Sending build context to Docker daemon 355.8 kB
Step 1 : FROM b.gcr.io/tensorflow/tensorflow
---> 217daf2537d2
Step 2 : MAINTAINER Craig Citro <[email protected]>
---> Using cache
---> c2360ebde114
Step 3 : RUN apt-get update && apt-get install -y g++ pkg-config python-dev python-numpy python-pip software-properties-common swig unzip wget zip zlib1g-dev && apt-get clean && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 7ec3c49697a3
Step 4 : RUN add-apt-repository -y ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk openjdk-8-jre-headless && apt-get clean && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 786647746054
Step 5 : RUN echo "startup --batch" >>/root/.bazelrc
---> Using cache
---> 99290d26b5eb
Step 6 : RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" >>/root/.bazelrc
---> Using cache
---> 2d5f8fd5f439
Step 7 : ENV BAZELRC /root/.bazelrc
---> Using cache
---> 024084c8fcec
Step 8 : ENV BAZEL_VERSION 0.1.1
---> Using cache
---> d1cea0cd4f37
Step 9 : WORKDIR /
---> Using cache
---> 1041a88b5eae
Step 10 : RUN mkdir /bazel && cd /bazel && wget https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && wget -O /bazel/LICENSE.txt https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE.txt && chmod +x bazel-*.sh && ./bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && cd / && rm -f /bazel/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh
---> Using cache
---> 8143b28e5a79
Step 11 : WORKDIR /tensorflow
---> Using cache
---> 760322cf243f
Step 12 : COPY tensorflow /tensorflow
lstat tensorflow: no such file or directory
ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$ sudo docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
or
docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .
gives
ubuntu@ubuntu-virtual-machine:~$ docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .
Error checking context: 'can't stat '/home/ubuntu/.cache/dconf''.
ubuntu@ubuntu-virtual-machine:~$
Documentation at is wrong it should be
git clone https://github.com/tensorflow/tensorflow
sudo docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .
who cares.