我正在尝试在docker-container中安装jre,然后使用
RUN apt-get install -y openjdk-7-jre
在我的容器中安装jre。当我开始构建它时,该过程在此命令中被阻止:
Setting up ca-certificates-java (20140324)...
以下是屏幕截图:screenshot
我的dockerfile来自 debian:jessie :
COPY ./data /runtime/data
RUN chmod 777 -R /runtime/data
RUN apt-get update && \
apt-get install -y openjdk-7-jre && \
apt-get install -y screen && \
rm -rf /var/lib/apt/lists/*
答案 0 :(得分:0)
我没问题:
[...]
Setting up openjdk-7-jre:amd64 (7u101-2.6.6-1~deb8u1) ...
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
Setting up ca-certificates-java (20140324) ...
done.
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for systemd (215-17+deb8u4) ...
Processing triggers for ca-certificates (20141019+deb8u1) ...
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
[...]
您的Docker版本是什么?