Will restarting docker restart apache in the container?
Mar 16, 2020 am 11:42 AM
Will restarting docker restart apache in the container?
Restarting docker will not restart apache in the container, nor will it restart Container, if the container startup method uses the --restart=always parameter, this mode will cause the apache service in the container to automatically resume after docker exits and restarts.
Note: If docker enters the container through exec, you need to restart the server after modifying the Apache configuration. If you use the following command in the container, it will cause the container to exit:
service apache2 restart
Use the following two methods Apache configuration information can be updated without exiting the container:
Method one: Execute inside the container
service apache2 reload
Method two: Execute outside the container:
docker restart [container name]
For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.
The above is the detailed content of Will restarting docker restart apache in the container?. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Agile development and operation of PHP microservice containerization

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node?

PHP distributed system architecture and practice

How to use PHP CI/CD to iterate quickly?

Deploy JavaEE applications using Docker Containers

How to conduct concurrency testing and debugging in Java concurrent programming?
