Problem
You are trying to seed a Docker registry according to the documentation and encounter the following error:
$ ./dkp push image-bundle --image-bundle konvoy-image-bundle.tar --to-registry $DOCKER_REGISTRY_ADDRESS --to-registry-username $DOCKER_REGISTRY_USERNAME --to-registry-password $DOCKER_REGISTRY_PASSWORD ✓ Creating temporary directory ✓ Unarchiving image bundle ✓ Parsing image bundle config ✓ Starting temporary Docker registry ✗ Copying docker.io/bitnami/kubectl:1.23.7 (from bundle) to docker-snapshot.cernerrepos.net/docker/healtheintent/d2iq:443/bitnami/kubectl:1.23.7 ---skopeo stdout---: ---skopeo stderr---: fork/exec /tmp/skopeo-261521759/skopeo: permission denied
Solution
If the following command outputs a non-empty string, it means that the temporary directory on the host is mounted with the noexec
option, which is not supported:
$ findmnt -l | grep noexec
/tmp /dev/mapper/vg00-tmplv00 xfs rw,nosuid,nodev,noexec,relatime,attr2,inode64,noquota
To resolve the issue, remount the temporary directory reverting the noexec
with the exec
option:
$ mount -o remount,rw,nosuid,nodev,exec,relatime,attr2,inode64,noquota /tmp