From: Ferenc Tóth Date: Thu, 20 Jun 2019 08:21:38 +0000 (+0200) Subject: Enable docker daemon experimental features X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=087db7f2d37ea58633b2e5248ed2c421888e1253;p=ci-management.git Enable docker daemon experimental features `docker build --squash` requires docker daemon experimental mode enabled. (This is valid for builder systems only, the product remains intact.) Signed-off-by: Ferenc Tóth Change-Id: I130832123d460716e938c0dbcec6cdbfdd4ab7e6 --- diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index 33f7f00..8ed76b5 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -219,6 +219,8 @@ - shell: |2- sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum -y install docker-ce docker-ce-cli containerd.io + sudo mkdir -p /etc/docker/ + echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json sudo systemctl start docker # Ugly hack to make docker usable for non-root # (adding to the group would require re-login)