Skip to content

is flyctl image new version resolving logic working as expected? #4812

@kubosuke

Description

@kubosuke

Please only report specific issues with flyctl behavior. Anything like a support request for your application should go to https://community.fly.io. More people watch that space and can help you faster!

Describe the bug
Briefly, describe what broke and provide the following details:

is it resolving new image correctly?
If I'm not mistaken, if we unspecify minor version it always points the latest minor among them (e.g. psql 16 -> psql 16.13 (if .13 is the latest))

but currently the fly suggest the older minor image: flyio/postgres-flex:16 (v0.2.0) -> flyio/postgres-flex:16.6 (v0.1.0)

❯ f image show -a xxxxx
Updates available:

Machine "28714d6a6e7d28" flyio/postgres-flex:16 (v0.2.0) -> flyio/postgres-flex:16.6 (v0.1.0)
Machine "287e64eb601e78" flyio/postgres-flex:16 (v0.2.0) -> flyio/postgres-flex:16.6 (v0.1.0)
Machine "48e6d92c725d48" flyio/postgres-flex:16 (v0.2.0) -> flyio/postgres-flex:16.6 (v0.1.0)

Run `flyctl image update` to migrate to the latest image version.
Image Details
 MACHINE ID     │ REGISTRY                 │ REPOSITORY          │ TAG │ VERSION │ DIGEST                                                                  │ LABELS
 28714d6a6e7d28 │ docker-hub-mirror.fly.io │ flyio/postgres-flex │ 16  │ v0.2.0  │ sha256:2a9e786af061745f4cb37b19202f1d2ebeaa56a4ec35afb2ca611a071229859b │ fly.app_role=postgres_clusterfly.pg-manager=repmgrfly.pg-version=16.11fly.version=v0.2.0org.opencontainers.image.version=24.04
 287e64eb601e78 │ docker-hub-mirror.fly.io │ flyio/postgres-flex │ 16  │ v0.2.0  │ sha256:2a9e786af061745f4cb37b19202f1d2ebeaa56a4ec35afb2ca611a071229859b │ org.opencontainers.image.version=24.04fly.app_role=postgres_clusterfly.pg-manager=repmgrfly.pg-version=16.11fly.version=v0.2.0
 48e6d92c725d48 │ docker-hub-mirror.fly.io │ flyio/postgres-flex │ 16  │ v0.2.0  │ sha256:2a9e786af061745f4cb37b19202f1d2ebeaa56a4ec35afb2ca611a071229859b │ fly.version=v0.2.0org.opencontainers.image.version=24.04fly.app_role=postgres_clusterfly.pg-manager=repmgrfly.pg-version=16.11

even if the current one is the latest:

root@48e6d92c725d48:/# psql --version
psql (PostgreSQL) 16.13 (Ubuntu 16.13-1.pgdg24.04+1)
  • Operating system
  • fly version
❯ f version
fly v0.4.33 darwin/arm64 Commit: 44d56a688d1a979601017402965a6367039b2b72 BuildDate: 2026-04-09T16:02:39Z

** Paste your fly.toml

# paste your config file here

** Command output: **

# paste command output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions