MasterPi-2124 / sos-image

image for blockchain OS
0 stars 0 forks source link

Build image error: cache export feature is currently not supported for docker driver #2

Closed MasterPi-2124 closed 3 years ago

MasterPi-2124 commented 3 years ago

Step

run build.sh in rpi directory:

docker buildx build --tag sos-full --file Dockerfile --platform linux/arm64 --progress plain --cache-to ghcr.io/faddat/sos-full:cache --cache-from ghcr.io/faddat/sos-full:cache --load ../..
error: cache export feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")

It seems that --cache flags is missing somewhere.

nghuyenthevinh2000 commented 3 years ago

after reading through docker buildx document. Turns out that you need to create a builder instance first. Run

docker buildx create --use
docker buildx build --tag sos-full --file Dockerfile --platform linux/arm64 --progress plain --cache-to ghcr.io/faddat/sos-full:cache --cache-from ghcr.io/faddat/sos-full:cache --load ../..

it should solve the problem.

nghuyenthevinh2000 commented 3 years ago

done