How to restart apache2 without terminating docker container?

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

    But before going, does your apache fails while doing the restart? Thats how it exits? In that case, please do make it run by setting right configurations and having a look at those logs.

    One method you can try is login to the container (to bash) and you could always have a docker commit at a point where it works. You can then change your base container image to that.

    I had workarounds for similar situations by building new images from these committed ones using different ENTRYPOINT's in my Dockefile.

提交回复
热议问题