Skip to content

Commit

Permalink
fix(podman): cannot ready in podman (#68)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 authored Sep 20, 2024
1 parent 288c5bb commit 72a433c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/podman/ready.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func Ready(ctx context.Context, podmanPort int) error {
ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()

// See: https://docs.podman.io/en/latest/_static/api.html?version=v4.0#tag/images/operation/ImageListLibpod
url := fmt.Sprintf("http://127.0.0.1:%d/libpod/images/json", podmanPort)
// See: https://docs.podman.io/en/latest/_static/api.html?version=v4.0#tag/images-(compat)/operation/ImageList
url := fmt.Sprintf("http://127.0.0.1:%d/images/json", podmanPort)
for {
if _, err := request.Get(ctx, url); err != nil {
if ctx.Err() != nil {
Expand Down

0 comments on commit 72a433c

Please sign in to comment.