rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 655 forks source link

PHP docker not working on GCE #1590

Open LavaTiger99 opened 7 years ago

LavaTiger99 commented 7 years ago

RancherOS Version: (ros os version) 0.7.1 Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.) GCE

I have sucessfully installed rancheros 0.7.1 on google cloud compute, and most containers work fine, however Docker images w/ php/apache are not working. They work with HTML, but not php.

Try: docker run -d -p 80:80 php:apache OR docker run -d -p 80:80 k0st/alpine-apache-php

Load an html into the root www directory and everything works fine. Load a php file (e.g. <?php phpinfo(); ?> ), and it spins and never loads in browser. No useful info in the container's apache error/access logs.

When running both above containers in CoreOS and Ubuntu images on GCE, PHP pages work fine. Running both containers above in RancherOS installed in virtualbox on my laptop works fine as well w/ php.

Only place it is not working is RancherOS installed on GCE (html pages do work though).

Any thoughts?

SvenDowideit commented 7 years ago

wow - this'll be fascinating to track down.

LavaTiger99 commented 7 years ago

I'm not even sure where to start...

LavaTiger99 commented 7 years ago

Any thoughts or progress on this? Anyone else experienced a similar issue?

LavaTiger99 commented 7 years ago

Issue still persists with 0.9.1

LavaTiger99 commented 7 years ago

@SvenDowideit Any suggestions where I should start working this up or looking into it? I currently use RancherOS for our servers on bare metal and I love it, but we are moving to GoogleCloud, and I would really prefer to stay w/ RancherOS, so I'm trying to work out what's going on, but w/ no obvious errors/logs, I'm at a loss.

vincent99 commented 7 years ago

I would start with tcpdump on the host; if there's a response sent then tcpdump on the client, otherwise maybe strace of the process on Google vs somewhere else.

LavaTiger99 commented 7 years ago

Thanks, I'll start looking into it.