我不会运行这个(https://github.com/thomashossler/synthetic-data-generator#config-file)项目,但无法构建docker映像。 我没有在stackoverflow上找到此错误,所以希望您能为我提供帮助
/synthetic-data-generator$ docker build . -f Dockerfile
Sending build context to Docker daemon 3.944MB
Step 1/11 : FROM python:3.6
---> 0668df180a32
Step 2/11 : RUN apt-get update && apt-get install -y
bzip2 git git-core libfontconfig1
libgconf-2-4 libglu1 libsm6 libxext6
libxrender1 vim wget
---> Using cache
---> 0c92c577bdf4
Step 3/11 : WORKDIR /root/
---> Using cache
---> 2221c959662d
Step 4/11 : RUN wget -c --quiet
download.blender.org/release/Blender2.79/blender-2.79a-linux-
glibc219-x86_64.tar.bz2 && tar -xf blender-2.79a-linux-glibc219-
x86_64.tar.bz2 && rm blender-2.79a-linux-glibc219-x86_64.tar.bz2
&& mv blender-2.79a-linux-glibc219-x86_64/ blender/ && cp -r
blender /usr/lib/blender && echo "export
PATH="/usr/lib/blender:$PATH"" >> /root/.bashrc
---> Running in 03a48a002fe6
The command '/bin/sh -c wget -c --quiet
download.blender.org/release/Blender2.79/blender-2.79a-linux-
glibc219-x86_64.tar.bz2 && tar -xf blender-2.79a-linux-glibc219-
x86_64.tar.bz2 && rm blender-2.79a-linux-glibc219-x86_64.tar.bz2
&& mv blender-2.79a-linux-glibc219-x86_64/ blender/ && cp -r
blender /usr/lib/blender && echo "export
PATH="/usr/lib/blender:$PATH"" >> /root/.bashrc' returned a non-zero
code: 5
我的Dockerfile
FROM python:3.6
RUN apt-get update && \
apt-get install -y \
bzip2 \
git \
git-core \
libfontconfig1 \
libgconf-2-4 \
libglu1 \
libsm6 \
libxext6 \
libxrender1 \
vim \
wget
WORKDIR /root/
RUN wget -c --quiet
download.blender.org/release/Blender2.79/blender-2.79a-linux-
glibc219-x86_64.tar.bz2 && \
tar -xf blender-2.79a-linux-glibc219-x86_64.tar.bz2 && \
rm blender-2.79a-linux-glibc219-x86_64.tar.bz2 && \
mv blender-2.79a-linux-glibc219-x86_64/ blender/ && \
cp -r blender /usr/lib/blender && \
echo "export PATH="/usr/lib/blender:$PATH"" >> /root/.bashrc
COPY /src/requirements.txt /root
RUN pip3 install -r /root/requirements.txt
RUN pip3 install --user
git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI
COPY models /root/models/
COPY src /root/
COPY deploy/config.json /root/
CMD ["python3", "dataset_creation.py"]
# ENTRYPOINT ["/root/entrypoint.sh"]
#EXPOSE 8889
#CMD ["jupyter notebook", "--ip=0.0.0.0", "--allow-root", "--port=8889"]
任何人都可以有类似的经验并给我解决方案。非常感谢!
答案 0 :(得分:0)
最有可能在wget
命令上失败。该RUN行有6个单独的命令。如果其他5个失败,它们都可能会产生一些错误消息。 wget
传递了--quiet
标志,这抑制了输出。
要进一步调试,请尝试从--quiet
中删除wget
标志。
从man wget
开始,退出状态为5 = SSL验证错误。也许您在公司代理后面,并且在运行wget的容器中未安装SSL证书。