Private registry integration - AWS ECR #7046
scapotondo
started this conversation in
Documentation
Replies: 1 comment 1 reply
-
hello folks, I've tagged you because you're the ones that Github suggests @shift @ocean @simon-engledew @umax Do you have some insight related to my question? I can't use images stored in private registries in my gitlabci pipelines |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hey folks,
I'm trying to create a pipeline stage using GitlabCI where I analyze a previously uploaded docker image stored in ECR and I'm facing issues. Let me provide more information:
Error:
FATAL Fatal error image scan error: scan error: unable to initialize a scanner: unable to initialize an image scanner: unable to find the specified image "<ecr-docker-image-url>" in ["docker" "containerd" "podman" "remote"]: 4 errors occurred: * docker error: unable to inspect the image (<ecr-docker-image-url>): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? * containerd error: containerd socket not found: /run/containerd/containerd.sock * podman error: unable to initialize Podman client: no podman socket found: stat podman/podman.sock: no such file or directory * remote error: GET : unexpected status code 401 Unauthorized: Not Authorized
Docker image used: https://hub.docker.com/r/bitnami/trivy/ version 0.52.2
I've tried stuff following documentation and taking a look at the proyect on my local machine but it haven't been enough. I'll share the GitlabCI job that I'm using
IMAGE_REPO
var points to the ecr repository andIMAGE_TAG
to the tag for the specific project.We're using pod identity to authenticate with aws
Documentation that I've used:
Let me know if you need more information from my side
Target
AWS
Scanner
Misconfiguration
Output Format
None
Mode
Client/Server
Operating System
I'm using trivy inside a docker container
Version
Beta Was this translation helpful? Give feedback.
All reactions