Hello,
I have following specification about the entry point of my apache container:
{
"Id": "5bf3de50139df556ffec457b9c113d48e934a5c65596616d91e36f8cd3250459",
"Created": "2017-06-12T14:39:52.076954844Z",
"Path": "docker-php-entrypoint",
"Args": [
"apachectl",
"-D",
"FOREGROUND"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 137,
"Error": "",
"StartedAt": "2017-06-12T15:13:43.325593139Z",
"FinishedAt": "2017-06-12T17:16:07.957744355Z"
If I start the container this way:
docker run -d -p 8000:80 --name php7 localhost:5000/7.1.5-apache:latest.1
the container exited immediately, I have to specify always
docker run -d -p 8000:80 --name php7 localhost:5000/7.1.5-apache:latest.1 apachectl -D FOREGROUND
to start Apache. I don’t get in my mind what’s happened here why the entry point seems to be ignored.