Open didoux opened 6 months ago
@didoux tganks for raising this issue.
Could you please try setting the cache to a writable directory or disable it completely as documented at https://github.com/docker/scout-cli#environment-variables?
@didoux tganks for raising this issue.
Could you please try setting the cache to a writable directory or disable it completely as documented at https://github.com/docker/scout-cli#environment-variables?
Yep, Thanks, I'm not getting the permission denied error anymore. I had to combine the two statements into a one-liner:
sh 'export DOCKER_SCOUT_CACHE_DIR=/home/jenkins/.docker/scout && ./docker-scout cves ubi8-minimal-openjdk8-perl:8.9 --exit-code --only-severity critical,high'
So, just the documentation need to be updated? Right?
https://docs.docker.com/scout/integrations/ci/jenkins/
sh 'echo $DOCKER_HUB_PAT | docker login -u $DOCKER_HUB_USER --password-stdin'
to
sh 'echo $DOCKER_HUB_PSW | docker login -u $DOCKER_HUB_USR --password-stdin'
Plus, something about the cache.
@dvdksn is there something we can do here in the docs?
thanks, I'll get it updated.
Jenkins is running on a Amazon Linux EC2 (Linux xxx-xxx 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Thu Nov 16 10:29:04 EST 2023 x86_64 x86_64 x86_64 GNU/Linux) Jenikins version is 2.426.1 Docker Version: docker -v Docker version 24.0.7, build afdd53b which docker /usr/bin/docker
docker running as root
jenkins running as user jenkins
Jenkins Log: