docker コンテナで haproxy 開始時のエラー
Issue
- RHEL7 で docker のコンテナが haproxy を開始するとエラーが発生します。
bash-4.2# haproxy -f /etc/haproxy/haproxy.cfg -d
Available polling systems :
epoll : pref=300, test result OK
poll : pref=200, test result OK
select : pref=150, test result FAILED
Total:3 (2 usable), will use epoll.
Using epoll() as the polling mechanism.
[ALERT] 266/123506 (95) :[haproxy.main()] Cannot chroot(/var/lib/haproxy).
bash-4.2# rpm -qi haproxy
Name : haproxy
Version :1.5.2
Release :2.el7_0
Architecture: x86_64
Install Date:Wed Sep 24 12:22:11 2014
Group :System Environment/Daemons
Size :2629589
License :GPLv2+
Signature :RSA/SHA256, Thu Aug 14 14:46:35 2014, Key ID 199e2f91fd431d51
Source RPM : haproxy-1.5.2-2.el7_0.src.rpm
Build Date :Fri Aug 1 10:31:29 2014
Build Host : x86-021.build.eng.bos.redhat.com
Relocations :(not relocatable)
Packager :Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor :Red Hat, Inc.
URL : http://haproxy.1wt.eu/
Summary :HA-Proxy is a TCP/HTTP reverse proxy for high availability environments
Description :
HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high
availability environments.Indeed, it can:
- route HTTP requests depending on statically assigned cookies
- spread the load among several servers while assuring server persistence
through the use of HTTP cookies
- switch to backup servers in the event a main one fails
- accept connections to special ports dedicated to service monitoring
- stop accepting connections without breaking existing ones
- add/modify/delete HTTP headers both ways
- block requests matching a particular pattern
bash-4.2#
Environment
- Red Hat Enterprise Linux (RHEL) 7.0
- Docker
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.