Running apache2 server on ubuntu docker containerDocker install tools/run command on existing containerContain Docker Engine with AppArmor“Cannot connect to the Docker daemon” problem in Docker Ubuntu ContainerAccess docker container by FQDNinstall discourse with docker on ubuntu 16.04Running as a host user within a Docker containerIPSEC VPN client inside Docker container (Ubuntu)

Why is propagation delay a function of supply voltage?

How would I measure the Carbon Dioxide content in Coca Cola over a period of time?

Can a weapon be "unsheathable"?

Approximation of homeomorphism by diffeomorphism

How would sword design change if the aim was to cause as much immediate bleeding as possible?

Tactical illusion combat countermeasures (password system)

How can communicating in human language with an unconscious alien species be treated as an attack?

Java OOP Temperature Converter

Putting tools you use (but can't configure) on resume?

Is it ethical to apply for a short-term grant with a partner/spouse/girlfriend?

What would have been the typical drinks for a US farmer in the late 18th/early 19th century?

Is it advisable to cover and uncover the clarinet mouthpiece to play each note?

Texas gun laws - can an overseas visitor buy ammunition?

Is the number of federal judges appointed by Trump unusual?

Postdoc Fellowships Collision

Does a SQL server point in time recovery take as long as a full recovery?

What did Harry mean when he said "Well, I take it you're not sorry?" to Griphook?

What is this old farm "combine"?

Why is this defense against "It's a Unix system!" not widely implemented?

How to prevent stopping a macro on unsuccessful substitution?

How can I ensure consistency in web design?

Why there is difference between performance of Vanguard S&P500 (VUSA) and S&P500 index

Should we stop differentiating between ln and log?

Determine if this series is convergent/divergent



Running apache2 server on ubuntu docker container


Docker install tools/run command on existing containerContain Docker Engine with AppArmor“Cannot connect to the Docker daemon” problem in Docker Ubuntu ContainerAccess docker container by FQDNinstall discourse with docker on ubuntu 16.04Running as a host user within a Docker containerIPSEC VPN client inside Docker container (Ubuntu)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















I am working on Ubuntu 14.04. I recently started to learn docker and I have a Ubuntu 14.04 container. I want to install and run apache2 on this container to get my hands dirty in cloud and servers. Can someone tell me the commands to run the apache2 server on a specific ip address(with port number) and URL?










share|improve this question































    0


















    I am working on Ubuntu 14.04. I recently started to learn docker and I have a Ubuntu 14.04 container. I want to install and run apache2 on this container to get my hands dirty in cloud and servers. Can someone tell me the commands to run the apache2 server on a specific ip address(with port number) and URL?










    share|improve this question



























      0













      0









      0








      I am working on Ubuntu 14.04. I recently started to learn docker and I have a Ubuntu 14.04 container. I want to install and run apache2 on this container to get my hands dirty in cloud and servers. Can someone tell me the commands to run the apache2 server on a specific ip address(with port number) and URL?










      share|improve this question














      I am working on Ubuntu 14.04. I recently started to learn docker and I have a Ubuntu 14.04 container. I want to install and run apache2 on this container to get my hands dirty in cloud and servers. Can someone tell me the commands to run the apache2 server on a specific ip address(with port number) and URL?







      14.04 apache2 docker






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 3 '15 at 12:36









      TrinityTrinity

      11 silver badge3 bronze badges




      11 silver badge3 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          0



















          Launching Apache web server using Docker is an extremely easy task.



          Before starting, I may recommend you to follow these guides, that are really useful for understanding the steps of how-to-start with Docker - Run a simple application, Quickstart containers.



          Regarding your Apache question: I may recommend you to follow this page, where you may find some useful recommendations of how-to-run Apache webserver on Docker.



          If you'd like to run Docker container on some specific port, you may get started with the following - Docker networking guide.



          Have a good luck!






          share|improve this answer

























          • I am trying to do this to replicate my manually installed docker server. The httpd docker image doesn't have the a2ensite etc. config that ubuntu does.

            – Robert3452
            Sep 4 '16 at 13:01



















          0



















          Try :
          apt-get update && apt-get install apache2 -y



          --> This is because docker is not storing app repository cache






          share|improve this answer


























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f668822%2frunning-apache2-server-on-ubuntu-docker-container%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0



















            Launching Apache web server using Docker is an extremely easy task.



            Before starting, I may recommend you to follow these guides, that are really useful for understanding the steps of how-to-start with Docker - Run a simple application, Quickstart containers.



            Regarding your Apache question: I may recommend you to follow this page, where you may find some useful recommendations of how-to-run Apache webserver on Docker.



            If you'd like to run Docker container on some specific port, you may get started with the following - Docker networking guide.



            Have a good luck!






            share|improve this answer

























            • I am trying to do this to replicate my manually installed docker server. The httpd docker image doesn't have the a2ensite etc. config that ubuntu does.

              – Robert3452
              Sep 4 '16 at 13:01
















            0



















            Launching Apache web server using Docker is an extremely easy task.



            Before starting, I may recommend you to follow these guides, that are really useful for understanding the steps of how-to-start with Docker - Run a simple application, Quickstart containers.



            Regarding your Apache question: I may recommend you to follow this page, where you may find some useful recommendations of how-to-run Apache webserver on Docker.



            If you'd like to run Docker container on some specific port, you may get started with the following - Docker networking guide.



            Have a good luck!






            share|improve this answer

























            • I am trying to do this to replicate my manually installed docker server. The httpd docker image doesn't have the a2ensite etc. config that ubuntu does.

              – Robert3452
              Sep 4 '16 at 13:01














            0















            0











            0









            Launching Apache web server using Docker is an extremely easy task.



            Before starting, I may recommend you to follow these guides, that are really useful for understanding the steps of how-to-start with Docker - Run a simple application, Quickstart containers.



            Regarding your Apache question: I may recommend you to follow this page, where you may find some useful recommendations of how-to-run Apache webserver on Docker.



            If you'd like to run Docker container on some specific port, you may get started with the following - Docker networking guide.



            Have a good luck!






            share|improve this answer














            Launching Apache web server using Docker is an extremely easy task.



            Before starting, I may recommend you to follow these guides, that are really useful for understanding the steps of how-to-start with Docker - Run a simple application, Quickstart containers.



            Regarding your Apache question: I may recommend you to follow this page, where you may find some useful recommendations of how-to-run Apache webserver on Docker.



            If you'd like to run Docker container on some specific port, you may get started with the following - Docker networking guide.



            Have a good luck!







            share|improve this answer













            share|improve this answer




            share|improve this answer










            answered Jan 1 '16 at 16:32









            ihor_dvoretskyiihor_dvoretskyi

            1714 bronze badges




            1714 bronze badges















            • I am trying to do this to replicate my manually installed docker server. The httpd docker image doesn't have the a2ensite etc. config that ubuntu does.

              – Robert3452
              Sep 4 '16 at 13:01


















            • I am trying to do this to replicate my manually installed docker server. The httpd docker image doesn't have the a2ensite etc. config that ubuntu does.

              – Robert3452
              Sep 4 '16 at 13:01

















            I am trying to do this to replicate my manually installed docker server. The httpd docker image doesn't have the a2ensite etc. config that ubuntu does.

            – Robert3452
            Sep 4 '16 at 13:01






            I am trying to do this to replicate my manually installed docker server. The httpd docker image doesn't have the a2ensite etc. config that ubuntu does.

            – Robert3452
            Sep 4 '16 at 13:01














            0



















            Try :
            apt-get update && apt-get install apache2 -y



            --> This is because docker is not storing app repository cache






            share|improve this answer





























              0



















              Try :
              apt-get update && apt-get install apache2 -y



              --> This is because docker is not storing app repository cache






              share|improve this answer



























                0















                0











                0









                Try :
                apt-get update && apt-get install apache2 -y



                --> This is because docker is not storing app repository cache






                share|improve this answer














                Try :
                apt-get update && apt-get install apache2 -y



                --> This is because docker is not storing app repository cache







                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Jul 3 '17 at 10:21









                NitinNitin

                1




                1































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f668822%2frunning-apache2-server-on-ubuntu-docker-container%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

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?