Skip to content

Unable to analyze the image using dive #498

Closed
@venkatn087

Description

@venkatn087

What happened: I am using RHEL9 free tier from AWS and installed the dive with below steps by referring the github page https://github.com/wagoodman/dive and the version is dive 0.11.0
i have downloaded the Docker image "nginx:latest" by using "docker pull nginx" command
then i have executed "dive nginx:latest", getting below error

[ec2-user@ip-172-31-36-53 ~]$ sudo dive nginx
Image Source: docker://nginx
Fetching image... (this can take a while for large images)
cannot fetch image
could not find image config
[ec2-user@ip-172-31-36-53 ~]$

Could you please let me know how to scan an image using dive?

Anything else we need to know?: I am interested to know how to include the dive into jenkins CI/CD pipeline. like we are using Free style jobs so need to include the configuration in the "execute shell"

Environment: RHEL9

  • OS version:
    - [ec2-user@ip-172-31-36-53 ~]$ uname -a
    Linux ip-172-31-36-53.ec2.internal 5.14.0-362.8.1.el9_3.x86_64 List layers #1 SMP PREEMPT_DYNAMIC Tue Oct 3 11:12:36 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
    [ec2-user@ip-172-31-36-53 ~]$

  • Docker version (if applicable)
    - [ec2-user@ip-172-31-36-53 ~]$ docker --version
    Docker version 25.0.0, build e758fe5
    [ec2-user@ip-172-31-36-53 ~]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions