osixia / docker-keepalived

Keepalived container image 🐳🌴
MIT License
399 stars 146 forks source link

How to use the keepalived with docker-compose.yml? #23

Closed T1Nk1r closed 6 years ago

T1Nk1r commented 6 years ago

Docker version 18.03.1-ce, build 9ee9f40 docker-compose version 1.21.2, build a133471 docker-compose.yml version 3.6 yml running1 the keepalived image built by https://github.com/osixia/docker-keepalived/tree/stable/image what should i do?Give me some advice,plz! Forgive me the poor English!

meyayl commented 5 years ago

You will need to add the required capabilites like this: https://docs.docker.com/compose/compose-file/#cap_add-cap_drop

Though, for time beeing this is only supported for docker-compose deployment, but not for swarm service/stack deployments (see: https://github.com/moby/moby/issues/25885)