apache - boot2docker windows 10, unable to access container via browser -


i trying use docker on windows 10 via boot2docker , vb.

  • boot2docker ssh
  • boot2docker ip => 192.168.59.103
  • docker run -tip 80:80 tutum/apache-php bash
  • ping 192.168.59.103 host machine

it sounds working pretty exepts :

  • via browser, when go http://192.168.59.103 page not found

do have idea issue ?

thanks.

edit : logs

docker@boot2docker:~$ docker ps -a container id        image               command             created             status              ports                names ecb75ba8f5f9        tutum/apache-php    "/run.sh"           20 minutes ago      20 minutes       0.0.0.0:80->80/tcp   ecstatic_galileo docker@boot2docker:~$ docker logs ec ==> /var/log/apache2/access.log <==  ==> /var/log/apache2/error.log <==  ==> /var/log/apache2/other_vhosts_access.log <==  ==> /var/log/apache2/error.log <== [mon aug 17 10:18:25.361931 2015] [mpm_prefork:notice] [pid 1] ah00163: apache/2.4.7 (ubuntu) php/5.5.9-1ubuntu4.11 configured -- resuming normal operations [mon aug 17 10:18:25.363857 2015] [core:notice] [pid 1] ah00094: command line: 'apache2 -d foreground' docker@boot2docker:~$ 

you've told container run bash shell, not web server.

try changing run command to:

docker run -d -p 80:80 tutum/apache-php 

then accessing url. should run default command container, presumably start apache. in case overrode default command "bash", won't start apache.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -