From 25b09928a3ce320351602730430915fda81af42a Mon Sep 17 00:00:00 2001 From: Dominik Winter Date: Sat, 13 Feb 2016 01:40:36 +0100 Subject: [PATCH] add NET_ADMIN container capabilities instead of all privileges --- docker-compose.yml.dist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml.dist b/docker-compose.yml.dist index 15e07908..752794dc 100644 --- a/docker-compose.yml.dist +++ b/docker-compose.yml.dist @@ -2,7 +2,8 @@ mail: image: tvial/docker-mailserver hostname: mail domainname: domain.com - privileged: true + cap_add: + - NET_ADMIN ports: - "25:25" - "143:143"