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













2















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?










share|improve this question

















  • 1





    Try ENV JAVA_HOME /usr/lib/xxx.

    – Corey
    Mar 7 at 1:12
















2















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?










share|improve this question

















  • 1





    Try ENV JAVA_HOME /usr/lib/xxx.

    – Corey
    Mar 7 at 1:12














2












2








2


2






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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 0:47









aronotaronot

487




487







  • 1





    Try ENV JAVA_HOME /usr/lib/xxx.

    – Corey
    Mar 7 at 1:12













  • 1





    Try ENV 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













1 Answer
1






active

oldest

votes


















3














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.






share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    3














    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.






    share|improve this answer



























      3














      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.






      share|improve this answer

























        3












        3








        3







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 7 at 1:28









        CoreyCorey

        50211020




        50211020





























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

            Алба-Юлія

            Захаров Федір Захарович