Skip to content

exporting cache step using --cache-to type=local takes very long time #237

@bendavies

Description

@bendavies

Hi,

This happens on osx.

Version info:

docker -v
Docker version 19.03.5, build 633a0ea
docker buildx version
github.com/docker/buildx v0.3.1-tp-docker 6db68d029599c6710a32aa7adcba8e5a344795a7

I have a multi stage build i'm trying to cache, and i'm trying this:

  docker buildx build \
    --target composer \
    -t "$IMAGE_TAG" \
    -f ./Dockerfile \
    --cache-from=type=registry,ref=$CACHE_TAG \
    --cache-to=type=registry,ref=$CACHE_TAG,mode=max \
    --push \
    --progress=plain \
    .

At the end, at time of writing, this has been running for 5 minutes and has not finished. edit: cancelled if after 30 mins, CPU stopped spinning after 15)

#17 importing to docker
#17 ...

#16 exporting to oci image format
#16 sending tarball 7.6s done
#16 DONE 14.0s

#18 exporting cache
#18 preparing build cache for export
#18 ...

#17 importing to docker
#17 DONE 4.9s

#18 exporting cache

Any ideas?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions