Php: Container won't start twice: "httpd (pid 13) already running"

Created on 28 Jan 2016  路  8Comments  路  Source: docker-library/php

Hello,

Thanks for setting up this image. It's saving me a ton of time :+1:

It seems like if you run php:5.6-apache through Docker Compose, it will run fine the first time, but not the second time, because it seems to be keeping a reference to the previous process ID.

This have discussed here previously (in 2014): https://groups.google.com/forum/#!topic/docker-user/2dP09wrq5Qk

Is there any specific reason for this? Would you be OK with a PR that removes the left over PID before exiting, as shown in the link above.

Best regards,
Conrad

Most helpful comment

https://github.com/docker-library/php/blob/bdfd0fc1d19102cd6f951614072a51eabf7191bf/5.6/apache/apache2-foreground
should already be doing this -- have you done a "docker-compose pull" to
make sure you've got the latest image?

All 8 comments

https://github.com/docker-library/php/blob/bdfd0fc1d19102cd6f951614072a51eabf7191bf/5.6/apache/apache2-foreground
should already be doing this -- have you done a "docker-compose pull" to
make sure you've got the latest image?

I'm running into this issue on the 5.6.3-apache tag.

Can you please try again with 5.6-apache? (5.6.30 is the latest, but intermediate or old point releases are not supported -- only the latest is)

If they're not supported can we mention this on the readme / docker page?

The description includes a section of "Supported tags" right at the top. 馃槈

Oh I see, it's 5.6.30-apache and not 5.6.3-apache, right?

Correct, but "5.6-apache" will track the latest PHP 5.6 release without you
having to update at each point release to stay supported (until the EOL of
PHP 5.6).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

2Kable picture 2Kable  路  3Comments

PMExtra picture PMExtra  路  3Comments

ktrzos picture ktrzos  路  3Comments

mbates picture mbates  路  3Comments

ambroisemaupate picture ambroisemaupate  路  3Comments