You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dhesson long story short, Oracle does not want the images there, so chances are your image will be taken down in the near future. Seems they do not want Oracle java to be distributed through any channels other than their own. Also I believe there is some feelings about that license acceptance that has to happen before java is installed.
A work-a-round is to start up your own private registry, and host your base image in that for your builds. I have no idea where that leaves you with regards to Oracle (legally speaking).
Activity
[-]Problem during installing java image into docker[/-][+]Problem during install java image into docker[/+]raskolnikov7 commentedon Feb 22, 2016
I m facing same issue.
raskolnikov7 commentedon Feb 22, 2016
91m/bin/sh: 1: �[0m�[91madd-apt-repository: not found�[0m�[91m
�[0mRemoving intermediate container b41d7e7b1c47
The command '/bin/sh -c echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && add-apt-repository -y ppa:webupd8team/java && apt-get update && apt-get install -y oracle-java8-installer && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/oracle-jdk8-installer' returned a non-zero code: 127
demaniak commentedon Mar 16, 2016
Yes, it seems the dockerfile/java image is not available on docker hub - it is 404'ing
dhesson commentedon Apr 19, 2016
Now what?!
dhesson commentedon Apr 19, 2016
I uploaded this image as a base for my java builds. Seems to work.
https://hub.docker.com/r/cogniteev/oracle-java/~/dockerfile/
demaniak commentedon Apr 27, 2016
@dhesson long story short, Oracle does not want the images there, so chances are your image will be taken down in the near future. Seems they do not want Oracle java to be distributed through any channels other than their own. Also I believe there is some feelings about that license acceptance that has to happen before java is installed.
The official java image repo (https://hub.docker.com/_/java/) also some explanation on this.
A work-a-round is to start up your own private registry, and host your base image in that for your builds. I have no idea where that leaves you with regards to Oracle (legally speaking).
loretoparisi commentedon Nov 23, 2016
@demaniak this has been now deprecated, so which is the solution?
demaniak commentedon Nov 24, 2016
@loretoparisi you mean this?
I would suggest it is possible to role your own image, maybe using this as a guide.
I would also suggest you then host that image in your own private repository.
Hope that helps, good luck!
loretoparisi commentedon Nov 24, 2016
@demaniak thanks the issue was the old docker files of java, it's as simple as
docker pull java