How to restart apache2 without terminating docker container?

后端 未结 5 996
甜味超标
甜味超标 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:09

    My solution to this was to exit my bash shell into the container, and just restart the container outside of Docker. Because Apache is set as the primary service, this also restarts Apache, and doesn't crash the container.

    docker restart 
    

提交回复
热议问题