Running apache2 server on ubuntu docker container












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














bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    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














    bumped to the homepage by Community 6 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      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

      113




      113





      bumped to the homepage by Community 6 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 6 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          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/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%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




            1714













            • 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

                    GameSpot

                    日野市

                    Tu-95轟炸機