Skip to content

Image.id of local image (load not push) contains the manifest hash and not the real docker image id #494

@vnghia

Description

@vnghia

What happened?

The output id field says that it is The provider-assigned unique ID for this managed resource so I've expected it to be the same as the docker image id when running docker image ls but it is not.

Looking through the build log, it is the manifest hash instead.

Example

Build any local image with this provider and print out id.

Output of pulumi about

CLI
Version      3.156.0
Go Version   go1.24.1
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  docker        4.6.1
resource  docker-build  0.0.10
language  python        3.156.0

Additional context

I found a similar issue #260 but it only mentioned the digest field and not id

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact/usabilitySomething that impacts users' ability to use the product easily and intuitivelykind/bugSome behavior is incorrect or out of spec

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions