Apache2 Fail To Start.

2 posts / 0 new
Last post
#1 Sun, 2016-09-11 04:16
Theraw
  • Theraw's picture
  • Offline
  • Last seen: 1 year 6 months ago
  • Joined: 2016-09-11

I Have build alpine latest from docker hub, i have install openrc and apache2
when i try to turn apache on i have one problem with network

interfaces file isn't in /etc/network/ directory.

So anyone know an fast way how to fix this ? because i have no idea how can i configure network for docker containers!

Sat, 2016-09-24 17:58
ehlers
  • ehlers's picture
  • Offline
  • Last seen: 4 months 3 weeks ago
  • Joined: 2016-09-24

The network configuration of a docker container is done by the docker daemon, not within the docker container. So you don't have /etc/network, you have to disable the network configuration part in openrc.

I suggest to try without openrc and start apache directly. A small test shows, that "mkdir -p /run/apache2" followed by "httpd -k start" should basically do that.

Log in or register to post comments