Skip to content

OCI export fails with error #498

@smithrobs

Description

@smithrobs

What happened?

When I try to export OCI I receive the following error: method /moby.filesync.v1.FileSend/diffcopy not supported by the client

  docker-build:index:Image (image):
    #0 building with "cranky_gould" instance using docker-container driver
    
    #1 [internal] load build definition from Dockerfile
    #1 transferring dockerfile: 87B done
    #1 DONE 0.0s
    
    #2 [internal] load metadata for docker.io/library/busybox:latest
    #2 DONE 0.2s
    
    #3 [internal] load .dockerignore
    error: failed to solve: method /moby.filesync.v1.FileSend/diffcopy not supported by the client

This might be a deps issue? I found docker/buildx#1522 with the same error message, but that should've been included at this point. Maybe bumping that or moby/buildkit would fix this?

Example

import pulumi_docker_build as docker_build

image = docker_build.Image("image",
    context={
        "location": "app",
    },
    dockerfile={
        "inline": """FROM busybox
""",
    },
    exports=[{
       "oci":{ }
    }],
    push=False)

Output of pulumi about

Version      3.157.0
Go Version   go1.24.1
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  docker-build  0.0.10
language  python        3.157.0

Host     
OS       darwin
Version  15.3.2
Arch     arm64

This project is written in python: executable='py-scratch/.venv/bin/python' version='3.13.2'

TYPE                           URN
pulumi:pulumi:Stack            urn:pulumi:dev::py-scratch::pulumi:pulumi:Stack::py-scratch-dev
pulumi:providers:docker-build  urn:pulumi:dev::py-scratch::pulumi:providers:docker-build::default_0_0_10
docker-build:index:Image       urn:pulumi:dev::py-scratch::docker-build:index:Image::image

Dependencies:
NAME                 VERSION
pulumi_docker_build  0.0.10

Additional context

No response

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

    kind/bugSome behavior is incorrect or out of spec

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions