GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docker inspect_image API response changed after upgrading to 1.11.1 · Issue #1963 · orbstack/orbstack

docker inspect_image API response changed after upgrading to 1.11.1 #1963

New issue
Copy link
New issue
Copy link
Closed
Closed
docker inspect_image API response changed after upgrading to 1.11.1#1963
Copy link
Labels
t/bugSomething isn't working

Description

@vitus-prediger
vitus-prediger
opened on Jun 2, 2025
Issue body actions

Describe the bug

Result from docker API's inspect_image command changed, starting with orb 1.11 it removes all keys inside the config hash that contain falsy values.
Since this behaviour is not documented in the official docker API docs, I suspect that orbstack is doing that for some reason.

To Reproduce

Run docker inspect --type=image on any image that does not have an entrypoint set, like an old varnish:6 for example.
With orbstack 1.11, docker version 28.2.1 the output from for docker inspect varnish:6 is

[
    {
        "Id": "sha256:1281296c1a17dba69bad096561bd6b1df09a0b97df04fa0acf39e80acef52b5a",
        "RepoTags": [
            "varnish-prediger:6-xkey",
            "varnish:6"
        ],
        "RepoDigests": [],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2025-01-31T12:03:03.397444335+01:00",
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "CACHE_SIZE=256M",
                "VCL_CONFIG=/etc/varnish/default.vcl",
                "VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600 -p max_esi_depth=15 -p feature=+esi_disable_xml_check"
            ],
            "Cmd": [
                "/start.sh"
            ],
            "WorkingDir": "/varnish-modules",
            "ArgsEscaped": true
        },
        "Architecture": "arm64",
        "Os": "linux",
        "Size": 1290013275,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/92zqyn6fvhv8h6djunguwq7gq/diff:/var/lib/docker/overlay2/y7rkkynwnvuj9igsdb8jq5n1k/diff:/var/lib/docker/overlay2/zi84kwhjy1c5z1ibvmab1zbll/diff:/var/lib/docker/overlay2/hyo896nl3w3un5civgvq3xa96/diff:/var/lib/docker/overlay2/ldy1br8p4fcfowit29g6n68im/diff:/var/lib/docker/overlay2/ix6z5i44syfa42pyr5yoppklg/diff:/var/lib/docker/overlay2/c30l9e7zpl47xbc2at6wflpjt/diff:/var/lib/docker/overlay2/uv9n68p1fe4sie3tvnui32ln6/diff:/var/lib/docker/overlay2/a0588019e4c552f22aae8b9e95fede510ef1b827941a5516cb82c6315ae0bcb7/diff",
                "MergedDir": "/var/lib/docker/overlay2/ner7xl4ugwbkdpx4p2yo45xb3/merged",
                "UpperDir": "/var/lib/docker/overlay2/ner7xl4ugwbkdpx4p2yo45xb3/diff",
                "WorkDir": "/var/lib/docker/overlay2/ner7xl4ugwbkdpx4p2yo45xb3/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:fd4d3cdea43d6989fcbb2647c6b5652df2472fd222f26af1c3504543855d1dea",
                "sha256:6fcce0d53986a7b11ff9e07a104a5d57d95c67bbf25af246427557cbd21a9500",
                "sha256:f79fecc6a777c0a7d02e745a7ec6183ebebb673b3aa7a4e60fdb31cf3701543f",
                "sha256:e5cfb113a5c920ee232942506f486271250b84b86dbd191692a1746e5d5da4a9",
                "sha256:47333d9517ff1dc9c73f3dec34faa5f25fb15958c4f85564d695c509c3b6ba0f",
                "sha256:0058b9df54c0fa89fcb7c3bf08e4b879c1b0398abe9110a3b4a5f6f0eea4c4a6",
                "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
                "sha256:9e73ffd6a3b87e45b55b68562bf118876237310ffd02407cf4616cf5560a54e0",
                "sha256:e892104004c12aadabd2a6121e347aa14dcbefc3e4d10dedcd05f90be281b145",
                "sha256:96c9491d3bcbbbac32b85a752baad94aa6cce095afbf07cca167cfa41e0df174"
            ]
        },
        "Metadata": {
            "LastTagTime": "2025-02-07T09:48:32.795936757+01:00"
        }
    }
]

Expected behavior

I expect the output to be the same as in orb v1.10, docker version 27.5.1:

[
    {
        "Id": "sha256:1281296c1a17dba69bad096561bd6b1df09a0b97df04fa0acf39e80acef52b5a",
        "RepoTags": [
            "varnish-prediger:6-xkey",
            "varnish:6"
        ],
        "RepoDigests": [],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2025-01-31T12:03:03.397444335+01:00",
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "CACHE_SIZE=256M",
                "VCL_CONFIG=/etc/varnish/default.vcl",
                "VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600 -p max_esi_depth=15 -p feature=+esi_disable_xml_check"
            ],
            "Cmd": [
                "/start.sh"
            ],
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "/varnish-modules",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "Architecture": "arm64",
        "Os": "linux",
        "Size": 1290013275,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/92zqyn6fvhv8h6djunguwq7gq/diff:/var/lib/docker/overlay2/y7rkkynwnvuj9igsdb8jq5n1k/diff:/var/lib/docker/overlay2/zi84kwhjy1c5z1ibvmab1zbll/diff:/var/lib/docker/overlay2/hyo896nl3w3un5civgvq3xa96/diff:/var/lib/docker/overlay2/ldy1br8p4fcfowit29g6n68im/diff:/var/lib/docker/overlay2/ix6z5i44syfa42pyr5yoppklg/diff:/var/lib/docker/overlay2/c30l9e7zpl47xbc2at6wflpjt/diff:/var/lib/docker/overlay2/uv9n68p1fe4sie3tvnui32ln6/diff:/var/lib/docker/overlay2/a0588019e4c552f22aae8b9e95fede510ef1b827941a5516cb82c6315ae0bcb7/diff",
                "MergedDir": "/var/lib/docker/overlay2/ner7xl4ugwbkdpx4p2yo45xb3/merged",
                "UpperDir": "/var/lib/docker/overlay2/ner7xl4ugwbkdpx4p2yo45xb3/diff",
                "WorkDir": "/var/lib/docker/overlay2/ner7xl4ugwbkdpx4p2yo45xb3/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:fd4d3cdea43d6989fcbb2647c6b5652df2472fd222f26af1c3504543855d1dea",
                "sha256:6fcce0d53986a7b11ff9e07a104a5d57d95c67bbf25af246427557cbd21a9500",
                "sha256:f79fecc6a777c0a7d02e745a7ec6183ebebb673b3aa7a4e60fdb31cf3701543f",
                "sha256:e5cfb113a5c920ee232942506f486271250b84b86dbd191692a1746e5d5da4a9",
                "sha256:47333d9517ff1dc9c73f3dec34faa5f25fb15958c4f85564d695c509c3b6ba0f",
                "sha256:0058b9df54c0fa89fcb7c3bf08e4b879c1b0398abe9110a3b4a5f6f0eea4c4a6",
                "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
                "sha256:9e73ffd6a3b87e45b55b68562bf118876237310ffd02407cf4616cf5560a54e0",
                "sha256:e892104004c12aadabd2a6121e347aa14dcbefc3e4d10dedcd05f90be281b145",
                "sha256:96c9491d3bcbbbac32b85a752baad94aa6cce095afbf07cca167cfa41e0df174"
            ]
        },
        "Metadata": {
            "LastTagTime": "2025-02-07T09:48:32.795936757+01:00"
        }
    }
]

Diagnostic report (REQUIRED)

orbstack-diagreport_2025-06-02T09-19-44.593123Z.zip

Screenshots and additional context (optional)

No response

Activity

  1. vitus-prediger
    added
    t/bugSomething isn't working
    on Jun 2, 2025
  2. orbstack-bot commented on Jun 2, 2025

    @orbstack-bot
    orbstack-botBot
    on Jun 2, 2025
    More actions

    Hi! Please upload a diagnostic report from the OrbStack menu > Help > Upload Diagnostics (or run orb report) and then paste the output here. The extra info makes it easier for us to debug issues.

    It should look like:

    System info:
    [...]
    
    Full report: orbstack.dev/[...].zip

    (It's safe to post the link publicly — only the OrbStack team can access it.)

  3. laurazard commented on Jun 2, 2025

    @laurazard
    laurazard
    on Jun 2, 2025
    More actions

    Hi @vitus-prediger, thanks for the report!

    I checked, and it looks like the changes are from the docker side –

    On docker v28.1.1, I see:

    $ docker run -p 2376:2376 --rm docker:28.1.1-dind dockerd -H tcp://0.0.0.0:2376 --tls=false
    
    $ DOCKER_HOST=tcp://:2376 docker pull alpine
    ...
    $ DOCKER_HOST=tcp://:2376 docker inspect alpine
    [
        {
            "Id": "sha256:2abc5e83407155714f171c293f197e1310176959e106f8ad63ffa2e7e9635d4a",
            "RepoTags": [
                "alpine:latest"
            ],
            "RepoDigests": [
                "alpine@sha256:8a1f59ffb675680d47db6337b49d22281a139e9d709335b492be023728e11715"
            ],
            "Parent": "",
            "Comment": "buildkit.dockerfile.v0",
            "Created": "2025-05-30T16:20:41Z",
            "DockerVersion": "",
            "Author": "",
            "Config": {
                "Hostname": "",
                "Domainname": "",
                "User": "",
                "AttachStdin": false,
                "AttachStdout": false,
                "AttachStderr": false,
                "Tty": false,
                "OpenStdin": false,
                "StdinOnce": false,
                "Env": [
                    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
                ],
                "Cmd": [
                    "/bin/sh"
                ],
                "Image": "",
                "Volumes": null,
                "WorkingDir": "/",
                "Entrypoint": null,
                "OnBuild": null,
                "Labels": null
            },
            "Architecture": "arm64",
            "Variant": "v8",
            "Os": "linux",
            "Size": 8515210,
            "GraphDriver": {
                "Data": {
                    "MergedDir": "/var/lib/docker/overlay2/694777d467f16ec902d725ec14b44ec92cf842dbc267f2f607a0f827176094b2/merged",
                    "UpperDir": "/var/lib/docker/overlay2/694777d467f16ec902d725ec14b44ec92cf842dbc267f2f607a0f827176094b2/diff",
                    "WorkDir": "/var/lib/docker/overlay2/694777d467f16ec902d725ec14b44ec92cf842dbc267f2f607a0f827176094b2/work"
                },
                "Name": "overlay2"
            },
            "RootFS": {
                "Type": "layers",
                "Layers": [
                    "sha256:1231a673589ac9e2f8a98ed916d1fa8301b36a44dd14fc40eba5a05905da69f1"
                ]
            },
            "Metadata": {
                "LastTagTime": "0001-01-01T00:00:00Z"
            }
        }
    ]
    

    vs. on docker v28.2.2:

    $  docker run -p 2377:2376 --rm docker:28.2.2-dind dockerd -H tcp://0.0.0.0:2376 --tls=false
    
    $ DOCKER_HOST=tcp://:2377 docker pull alpine
    ...
    $ DOCKER_HOST=tcp://:2377 docker inspect alpine
    [
        {
            "Id": "sha256:2abc5e83407155714f171c293f197e1310176959e106f8ad63ffa2e7e9635d4a",
            "RepoTags": [
                "alpine:latest"
            ],
            "RepoDigests": [
                "alpine@sha256:8a1f59ffb675680d47db6337b49d22281a139e9d709335b492be023728e11715"
            ],
            "Parent": "",
            "Comment": "buildkit.dockerfile.v0",
            "Created": "2025-05-30T16:20:41Z",
            "DockerVersion": "",
            "Author": "",
            "Config": {
                "Env": [
                    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
                ],
                "Cmd": [
                    "/bin/sh"
                ],
                "WorkingDir": "/"
            },
            "Architecture": "arm64",
            "Variant": "v8",
            "Os": "linux",
            "Size": 8515210,
            "GraphDriver": {
                "Data": {
                    "MergedDir": "/var/lib/docker/overlay2/9e8225cc12e2c4b3d7a28575bca002d66fc0caab7ce93b6dfb399c45c232a452/merged",
                    "UpperDir": "/var/lib/docker/overlay2/9e8225cc12e2c4b3d7a28575bca002d66fc0caab7ce93b6dfb399c45c232a452/diff",
                    "WorkDir": "/var/lib/docker/overlay2/9e8225cc12e2c4b3d7a28575bca002d66fc0caab7ce93b6dfb399c45c232a452/work"
                },
                "Name": "overlay2"
            },
            "RootFS": {
                "Type": "layers",
                "Layers": [
                    "sha256:1231a673589ac9e2f8a98ed916d1fa8301b36a44dd14fc40eba5a05905da69f1"
                ]
            },
            "Metadata": {
                "LastTagTime": "0001-01-01T00:00:00Z"
            }
        }
    ]
    
  4. laurazard commented on Jun 2, 2025

    @laurazard
    laurazard
    on Jun 2, 2025
    More actions

    I'll close the issue here since there's nothing to do on this side, but feel free to report this on moby/moby (or I might, if I remember to 😅).

  5. laurazard
    closed this as completedon Jun 2, 2025
  6. vitus-prediger commented on Jun 2, 2025

    @vitus-prediger
    vitus-prediger
    on Jun 2, 2025
    Author
    More actions

    @laurazard Thanks for checking.
    I can understand the change from docker, and I see that it was indeed announced in the changelogs, see this PR.
    Maybe the docker API reference could be a little clearer on the fact that it only returns those fields which are set.

  7. theCapypara commented on Jun 2, 2025

    @theCapypara
    theCapypara
    on Jun 2, 2025
    More actions

    I am pretty sure this has to be a bug, but in Docker, I opened an issue: moby/moby#50134 .

    The change log linked does not include fields such as Entrypoint being removed if null, which is part of the issue in this case.

  8. edumoritz commented on Mar 7, 2026

    @edumoritz
    edumoritz
    on Mar 7, 2026
    More actions

    Hey!

    Out of curiosity — how do you usually detect changes in API responses like this?

    I've run into similar issues when integrating third-party APIs where fields disappear or change type and the integration breaks unexpectedly.

    I'm currently building a small tool that monitors an endpoint and detects JSON schema drift automatically.

    Would love to hear how you handle this kind of problem today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.