can't install ElasticSearch image, with java 8docker ENV vs RUN exportSolr vs. ElasticSearch:: (double colon) operator in Java 8How to copy Docker images from one host to another without using a repositoryHow to install Java 8 on MacInstalling java in Docker imageHow to give java path in ubuntuBest way to install java 8 using docker?Elasticsearch CPU spikes while Kibana refreshingHow to install OpenJDK 10 for Elasticsearch 6.4Coverity tool as docker image for java applications
Friend wants my recommendation but I don't want to give it to him
Weird lines in Microsoft Word
Connection Between Knot Theory and Number Theory
What properties make a magic weapon befit a Rogue more than a DEX-based Fighter?
Why is indicated airspeed rather than ground speed used during the takeoff roll?
Why do Radio Buttons not fill the entire outer circle?
Could a welfare state co-exist with mega corporations?
Has the laser at Magurele, Romania reached the tenth of the Sun power?
1 John in Luther’s Bibel
What is this high flying aircraft over Pennsylvania?
Exposing a company lying about themselves in a tightly knit industry (videogames) : Is my career at risk on the long run?
python displays `n` instead of breaking a line
Trouble reading roman numeral notation with flats
Toggle window scroll bar
Capacitor electron flow
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
Why is participating in the European Parliamentary elections used as a threat?
Travelling in US for more than 90 days
Can a Knock spell open the door to Mordenkainen's Magnificent Mansion?
How do I lift the insulation blower into the attic?
Why doesn't Gödel's incompleteness theorem apply to false statements?
I keep switching characters, how do I stop?
In the event of Brexit being postponed beyond the EU elections, will UK voters in EU countries be eligible to participate?
Mortal danger in mid-grade literature
can't install ElasticSearch image, with java 8
docker ENV vs RUN exportSolr vs. ElasticSearch:: (double colon) operator in Java 8How to copy Docker images from one host to another without using a repositoryHow to install Java 8 on MacInstalling java in Docker imageHow to give java path in ubuntuBest way to install java 8 using docker?Elasticsearch CPU spikes while Kibana refreshingHow to install OpenJDK 10 for Elasticsearch 6.4Coverity tool as docker image for java applications
I used the official docker image for els (elasticsearch:6.6.1), and I get the following error, when I run the image:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
from searching online, there is problem with the JAVA, its using, and JAVA 8 is recommended.
I tried to make dockerfile that takes els:6.6.1 image, and install java8 on it:
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
RUN export PATH=$PATH:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/bin/
When I run it, I don't see JAVA_HOME env changing to the path I gave, and I still get the above error.
Do you know why?
docker elasticsearch java-8 dockerfile
add a comment |
I used the official docker image for els (elasticsearch:6.6.1), and I get the following error, when I run the image:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
from searching online, there is problem with the JAVA, its using, and JAVA 8 is recommended.
I tried to make dockerfile that takes els:6.6.1 image, and install java8 on it:
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
RUN export PATH=$PATH:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/bin/
When I run it, I don't see JAVA_HOME env changing to the path I gave, and I still get the above error.
Do you know why?
docker elasticsearch java-8 dockerfile
1
TryENV JAVA_HOME /usr/lib/xxx.
– Corey
Mar 7 at 1:12
add a comment |
I used the official docker image for els (elasticsearch:6.6.1), and I get the following error, when I run the image:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
from searching online, there is problem with the JAVA, its using, and JAVA 8 is recommended.
I tried to make dockerfile that takes els:6.6.1 image, and install java8 on it:
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
RUN export PATH=$PATH:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/bin/
When I run it, I don't see JAVA_HOME env changing to the path I gave, and I still get the above error.
Do you know why?
docker elasticsearch java-8 dockerfile
I used the official docker image for els (elasticsearch:6.6.1), and I get the following error, when I run the image:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
from searching online, there is problem with the JAVA, its using, and JAVA 8 is recommended.
I tried to make dockerfile that takes els:6.6.1 image, and install java8 on it:
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
RUN export PATH=$PATH:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/bin/
When I run it, I don't see JAVA_HOME env changing to the path I gave, and I still get the above error.
Do you know why?
docker elasticsearch java-8 dockerfile
docker elasticsearch java-8 dockerfile
asked Mar 7 at 0:47
aronotaronot
487
487
1
TryENV JAVA_HOME /usr/lib/xxx.
– Corey
Mar 7 at 1:12
add a comment |
1
TryENV JAVA_HOME /usr/lib/xxx.
– Corey
Mar 7 at 1:12
1
1
Try
ENV JAVA_HOME /usr/lib/xxx.– Corey
Mar 7 at 1:12
Try
ENV JAVA_HOME /usr/lib/xxx.– Corey
Mar 7 at 1:12
add a comment |
1 Answer
1
active
oldest
votes
Set environment variables by using ENV instead of RUN export.
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
You can see more explanation by VonC docker ENV vs RUN export.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034412%2fcant-install-elasticsearch-image-with-java-8%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Set environment variables by using ENV instead of RUN export.
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
You can see more explanation by VonC docker ENV vs RUN export.
add a comment |
Set environment variables by using ENV instead of RUN export.
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
You can see more explanation by VonC docker ENV vs RUN export.
add a comment |
Set environment variables by using ENV instead of RUN export.
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
You can see more explanation by VonC docker ENV vs RUN export.
Set environment variables by using ENV instead of RUN export.
FROM elasticsearch:6.6.1
RUN yum install -y java-1.8.0-openjdk-devel
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64
You can see more explanation by VonC docker ENV vs RUN export.
answered Mar 7 at 1:28
CoreyCorey
50211020
50211020
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034412%2fcant-install-elasticsearch-image-with-java-8%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Try
ENV JAVA_HOME /usr/lib/xxx.– Corey
Mar 7 at 1:12