docker-library / httpd

Docker Official Image packaging for Apache HTTP Server
https://httpd.apache.org
Apache License 2.0
309 stars 347 forks source link

ERROR exec: httpd: not found #225

Closed JavierSanchezCastro closed 1 year ago

JavierSanchezCastro commented 1 year ago

Hello! I'm getting this error when I try to up my docker-compose.

Honestly, it was working before and I don't know very well what I have modified.

Tree:

|- reverse-proxy
|  |- public-html
|     |- index.html
|  |- Dockerfile
|- docker-compose.yml

Dockerfile:

FROM httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/

docker-compose.yml

version: '3'
services:
  reverse-proxy:
    build: ./reverse-proxy
    container_name: reverse-proxy

Console Error

reverse-proxy    | /usr/local/bin/httpd-foreground: 7: exec: httpd: not found
reverse-proxy exited with code 127

Any ideas? #20

JavierSanchezCastro commented 1 year ago

Hello again!

I really don't know why, but after a lot of times deleting the httpd image and pulling, now works.

I still don't know why, the only think I did is run this command to get the original httpd.conf

$ sudo docker run --rm httpd:2.4 cat /usr/local/apache2/conf/original/httpd.conf