Enable docker daemon experimental features 23/1023/1
authorFerenc Tóth <ferenc.2.toth@nokia.com>
Thu, 20 Jun 2019 08:21:38 +0000 (10:21 +0200)
committerFerenc Tóth <ferenc.2.toth@nokia.com>
Thu, 20 Jun 2019 08:21:38 +0000 (10:21 +0200)
`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 <ferenc.2.toth@nokia.com>
Change-Id: I130832123d460716e938c0dbcec6cdbfdd4ab7e6

jjb/akraino-templates/akraino-ta-common-macros.yaml

index 33f7f00..8ed76b5 100644 (file)
       - 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)