Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem during install java image into docker #27

Open
ameydesai-tudip opened this issue Feb 15, 2016 · 9 comments
Open

Problem during install java image into docker #27

ameydesai-tudip opened this issue Feb 15, 2016 · 9 comments

Comments

@ameydesai-tudip
Copy link

I am having below issue during installation of java image in docker ? I want solution to resolve the same?

Sending build context to Docker daemon 99.33 kB
Step 1 : FROM dockerfile/java:oracle-java8
Pulling repository docker.io/dockerfile/java
Error: image dockerfile/java not found

@ameydesai-tudip ameydesai-tudip changed the title Problem during installing java image into docker Problem during install java image into docker Feb 15, 2016
@raskolnikov7
Copy link

I m facing same issue.

@raskolnikov7
Copy link

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
Copy link

Yes, it seems the dockerfile/java image is not available on docker hub - it is 404'ing

@dhesson
Copy link

dhesson commented Apr 19, 2016

Now what?!

@dhesson
Copy link

dhesson commented 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
Copy link

demaniak commented 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
Copy link

@demaniak this has been now deprecated, so which is the solution?

@demaniak
Copy link

@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
Copy link

@demaniak thanks the issue was the old docker files of java, it's as simple as docker pull java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants