Running apache2 server on ubuntu docker container
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
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.
add a comment |
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
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.
add a comment |
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
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
14.04 apache2 docker
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.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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!
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
add a comment |
Try :
apt-get update && apt-get install apache2 -y
--> This is because docker is not storing app repository cache
add a comment |
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
});
}
});
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%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
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!
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
add a comment |
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!
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
add a comment |
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!
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!
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
add a comment |
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
add a comment |
Try :
apt-get update && apt-get install apache2 -y
--> This is because docker is not storing app repository cache
add a comment |
Try :
apt-get update && apt-get install apache2 -y
--> This is because docker is not storing app repository cache
add a comment |
Try :
apt-get update && apt-get install apache2 -y
--> This is because docker is not storing app repository cache
Try :
apt-get update && apt-get install apache2 -y
--> This is because docker is not storing app repository cache
answered Jul 3 '17 at 10:21
NitinNitin
1
1
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f668822%2frunning-apache2-server-on-ubuntu-docker-container%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