How to restart apache2 without terminating docker container?

后端 未结 5 1052
甜味超标
甜味超标 2021-02-02 10:29

I am using as a base the php docker container with the tag:

php:5.6-apache

When I try to restart the apache2 inside the container, the containe

5条回答
  •  自闭症患者
    2021-02-02 11:27

    sudo docker kill --signal="USR1" your_appache_container

    Other signals that you can use to achieve the following :

    Stop Now Signal: TERM

    Graceful Restart Signal: USR1

    Restart Now Signal: HUP

    Graceful Stop Signal: WINCH

    From: this website

提交回复
热议问题