如题,在 ubuntu 12.04 上面安装 jdk6 各种冲突,所以想找个现成的.
PS. https://github.com/caarmen/docker-mvn-jdk-6-7-8 这个试过了,报错:
Step 5/11 : RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list && apt-get update && apt-get install --no-install-recommends -qqy openjdk-6-jdk openjdk-7-jdk openjdk-8-jdk ---> Running in d8487b7d535d Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://ppa.launchpad.net/justinludwig/tzdata/ubuntu xenial InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Ign:6 http://archive.ubuntu.com/ubuntu trusty InRelease Get:7 http://archive.ubuntu.com/ubuntu trusty Release [58.5 kB] Get:8 http://archive.ubuntu.com/ubuntu trusty Release.gpg [933 B] Get:9 http://archive.ubuntu.com/ubuntu trusty/main amd64 Packages [1743 kB] Get:10 http://archive.ubuntu.com/ubuntu trusty/restricted amd64 Packages [16.0 kB] Get:11 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages [7589 kB] Get:12 http://archive.ubuntu.com/ubuntu trusty/multiverse amd64 Packages [169 kB] Fetched 9577 kB in 39s (245 kB/s) Reading package lists... E: Unable to correct problems, you have held broken packages. The command '/bin/sh -c echo "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list && apt-get update && apt-get install --no-install-recommends -qqy openjdk-6-jdk openjdk-7-jdk openjdk-8-jdk' returned a non-zero code: 100
1
tszyh 2017-08-26 10:27:42 +08:00
自己做一个镜像
|
2
fzinfz 2017-08-26 10:44:03 +08:00
|
3
blindpirate OP @fzinfz 注意,是"同时"包含 6/7/8
|
4
junwuhui 2017-08-26 11:09:52 +08:00 via Android
apt 安装改成 COPY 手动导入包。
|
5
qiyuey 2017-08-26 11:20:43 +08:00 1
我好奇的是,为什么需要这样一个东西
|
6
tomczhen 2017-08-26 14:01:31 +08:00 via Android
恐怕又是个典型的 xy 问题
|