Docker Community Forums

Share and learn in the Docker community.

Beginning with docker


I have successfully installed docker toolbox for my windows Home edition machine, i would create an image to run symfony php framework on ubuntu
I have done the next things:

docker run --name web -p 80:80 -i -t ubuntu:latest /bin/bash

it’s ok i’m in the container, access to ubuntu bash and the container is up

i install apache
apt-get update
apt-get install apache2

everything looks normal
then i start apache

* Restarting Apache httpd web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message

I think this warning is “normal”

But when i look in my browser on http:localhost, i get a 404 error, Does it comes from my docker install or something else ?

thanks by advance

if you stop the container, do you still get a 404?

Also, is there a reason why you would install apache like this, and not use an image that allready have apache? :slight_smile:

Yes still have a 404 after stopped the container. No there’s no reason. Have you an image with apache PHP 7.3 and elastic search to recommend to me ?

Okay, then it seems like you have something on your PC that also listens on port 80, you could try running the docker one on port 8080 or something and try again.

For apache+php, there an official php image: php:7.2-apache ( )
and also one for elasticsearch: elasticsearch:6.7.0 (
/elasticsearch )

you woudnt really combine those to one container