skip to Main Content

On a fresh installation of httpd and PHP images and container get to create and work fine. But on restart of my system, httpd stop working. It’s not able to find the docroot folder. So is there any setting we need to do for same.

Throw error:

AH00112: Warning: DocumentRoot [/var/www/html/docroot/] does not exist docker error

2

Answers


  1. From the documentation:

    Use a restart policy To configure the restart policy for a container,
    use the –restart flag when using the docker run command. The value of
    the –restart flag can be any of the following:

    https://docs.docker.com/config/containers/start-containers-automatically/

    Login or Signup to reply.
  2. You have to start your container in daemon mode:

    docker run -d hello-world 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search