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

Can't inspect docker:23.0.1 through podman #475

Open
abitrolly opened this issue Sep 14, 2023 · 0 comments · May be fixed by #476
Open

Can't inspect docker:23.0.1 through podman #475

abitrolly opened this issue Sep 14, 2023 · 0 comments · May be fixed by #476
Labels
bug Something isn't working

Comments

@abitrolly
Copy link
Contributor

What happened:

Parsing problem.

✗ dive podman://docker:23.0.1
Image Source: docker://podman://docker:23.0.1
Fetching image... (this can take a while for large images)
Handler not available locally. Trying to pull 'podman://docker:23.0.1'...
cannot fetch image
cannot find docker client executable

--source podman also doesn't work.

✗ dive --source podman docker:23.0.1 
Image Source: docker://docker:23.0.1
...

What you expected to happen:

✗ dive podman://docker:23.0.1 
Image Source: podman://docker:23.0.1
...

and also

✗ dive --source podman docker:23.0.1 
Image Source: podman://docker:23.0.1
...

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • OS version
  • Docker version (if applicable)
@abitrolly abitrolly added the bug Something isn't working label Sep 14, 2023
abitrolly added a commit to abitrolly/dive that referenced this issue Sep 14, 2023
The problem was caused by net/url.Parse()
   panic: parse "podman://docker:23.0.1": invalid port ":23.0.1" after host
abitrolly added a commit to abitrolly/dive that referenced this issue Sep 14, 2023
The problem was caused by net/url.Parse()
   panic: parse "podman://docker:23.0.1": invalid port ":23.0.1" after host

Testing the fix
  ✗ ./dive podman://docker:23.0.1
  Image Source: podman://docker:23.0.1

  ✗ ./dive podman://docker:23.0.1 --source docker
  Image Source: podman://docker:23.0.1

  ✗ ./dive docker:23.0.1 --source podman
  Image Source: podman://docker:23.0.1
@abitrolly abitrolly linked a pull request Sep 14, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant