add NET_ADMIN container capabilities instead of all privileges

This commit is contained in:
Dominik Winter 2016-02-13 01:40:36 +01:00
parent 7e7c34a256
commit 25b09928a3

View file

@ -2,7 +2,8 @@ mail:
image: tvial/docker-mailserver image: tvial/docker-mailserver
hostname: mail hostname: mail
domainname: domain.com domainname: domain.com
privileged: true cap_add:
- NET_ADMIN
ports: ports:
- "25:25" - "25:25"
- "143:143" - "143:143"