build: Fix docker permission issue during manifest create

This is a workaround to fix docker permission denied issue
during manifest create in Travis CI
`docker manifest create` fails due to permission denied
on `/etc/docker/certs.d/quay.io`
more info https://github.com/docker/for-linux/issues/396.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-07-16 17:00:10 +05:30 committed by mergify[bot]
parent 684cb13c54
commit e03c0dc4a8

View File

@ -91,6 +91,11 @@ fi
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
build_step "log in to quay.io as user ${QUAY_IO_USERNAME}"
# This is a workaround to fix docker permission denied issue during manifest create in Travis CI.
# `docker manifest create` fails due to permission denied on `/etc/docker/certs.d/quay.io`
# (https://github.com/docker/for-linux/issues/396).
sudo chmod o+x /etc/docker
"${CONTAINER_CMD:-docker}" login -u "${QUAY_IO_USERNAME}" -p "${QUAY_IO_PASSWORD}" quay.io
set -xe