Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockle stopped working when updating docker to version 25 #256

Open
tgquan67 opened this issue Mar 5, 2024 · 2 comments
Open

dockle stopped working when updating docker to version 25 #256

tgquan67 opened this issue Mar 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tgquan67
Copy link

tgquan67 commented Mar 5, 2024

Description

Since I updated docker engine to version 25, I cannot scan images built locally anymore, with or without buildkit. The image is built normally with a dockerfile

docker build . -t a:b --load

And scan with

dockle a:b

This happens on both my local machine with Ubuntu 20.04 and dockle 0.4.11 and my Jenkins system with Ubuntu 20.04 and dockle 0.4.14. I already tried setting DOCKLE_HOST but that did not solve the problem.

What did you expect to happen?
The image is scanned.

What happened instead?

2024-03-05T15:55:55.182+0200    FATAL   unable to initialize a image struct: failed to initialize source: reading manifest b in docker.io/library/a: requested access to the resource is denied

Output of run with -debug:

2024-03-05T15:56:01.945+0200    DEBUG   There is no .dockleignore file
2024-03-05T15:56:01.945+0200    DEBUG   Skipped update confirmation
2024-03-05T15:56:01.945+0200    DEBUG   Start assessments...
2024-03-05T15:56:03.669+0200    FATAL   unable to initialize a image struct:
    github.com/goodwithtech/deckoder/extractor/docker.newDockerExtractor
        /home/runner/go/pkg/mod/github.com/goodwithtech/deckoder@v0.0.3/extractor/docker/docker.go:73
  - failed to initialize source:
    github.com/goodwithtech/deckoder/extractor/image.NewImage
        /home/runner/go/pkg/mod/github.com/goodwithtech/deckoder@v0.0.3/extractor/image/image.go:86
  - reading manifest b in docker.io/library/a: requested access to the resource is denied

Output of dockle -v:

dockle version 0.4.11

Additional details (base image name, container registry info...):
Sample dockerfile used

FROM python:3.8
COPY Pipfile Pipfile.lock .
RUN pip install pipenv && \
    pipenv sync
COPY code.txt .
@tgquan67 tgquan67 added the bug Something isn't working label Mar 5, 2024
@lamroger-nava
Copy link

lamroger-nava commented Apr 23, 2024

I'm having the same issue - did you figure out the problem @tgquan67 ?

edit: I figured it out - the runner / docker was out of space.
I run this before checkout

- name: Delete huge unnecessary tools folder
        run: rm -rf /opt/hostedtoolcache

@tgquan67
Copy link
Author

As far as I can see, the problem seems to have been solved with docker 26, not sure what docker did though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants