
前提・実現したいこと
dockerのビルド中にエラーが出てしまい、解決できません。
エラーの内容はgitが入っていない・pathが通っていないと出るのですが、
gitのコマンドを叩くと正常に動作します。
どなたかご教示いただけないでしょうか。
発生している問題・エラーメッセージ
$ docker build -t deepfakes -f Dockerfile.cpu . Sending build context to Docker daemon 4.608kB Step 1/7 : FROM tensorflow/tensorflow:1.12.0-py3 ---> 39bcb324db83 Step 2/7 : RUN add-apt-repository -y ppa:jonathonf/ffmpeg-4 && apt-get update -qq -y && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk ffmpeg && apt-get clean && rm -rf /var/lib/apt/lists/* ---> Using cache ---> c8cecd10738b Step 3/7 : COPY requirements.txt /opt/ ---> Using cache ---> 4fdc09fb23e8 Step 4/7 : RUN pip3 install --upgrade pip ---> Using cache ---> 5400b036a4fb Step 5/7 : RUN pip3 --no-cache-dir install -r /opt/requirements.txt && rm /opt/requirements.txt ---> Running in 0044bd8f5585 Ignoring pywin32: markers 'sys_platform == "win32"' don't match your environment Collecting git+https://github.com/deepfakes/nvidia-ml-py3.git (from -r /opt/requirements.txt (line 16)) Cloning https://github.com/deepfakes/nvidia-ml-py3.git to /tmp/pip-req-build-l_7bea5f Running command git clone -q https://github.com/deepfakes/nvidia-ml-py3.git /tmp/pip-req-build-l_7bea5f ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git clone -q https://github.com/deepfakes/nvidia-ml-py3.git /tmp/pip-req-build-l_7bea5f ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH? The command '/bin/sh -c pip3 --no-cache-dir install -r /opt/requirements.txt && rm /opt/requirements.txt' returned a non-zero code: 1
上記ログからErrorを抜粋
ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git clone -q https://github.com/deepfakes/nvidia-ml-py3.git /tmp/pip-req-build-l_7bea5f ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH? The command '/bin/sh -c pip3 --no-cache-dir install -r /opt/requirements.txt && rm ``` ### gitは入っており、pathも通っている $ git --version git version 2.22.0.windows.1 ⇒エラーとなったコードのみを実行してみると、問題なく動作する。 dockerのbuild内で行うとエラーになる。。 $ git clone -q https://github.com/deepfakes/nvidia-ml-py3.git /tmp/pip-req-build-l_7bea5f ### 補足情報(FW/ツールのバージョンなど) Windows10 Home Git-2.22.0-64-bit.exe DockerToolbox-18.09.3.exe

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/05 08:53