moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
8.15k stars 1.15k forks source link

--import-cache type=local should not error out when the cache doesn't exist #1240

Closed AkihiroSuda closed 4 years ago

AkihiroSuda commented 4 years ago
$ buildctl-daemonless.sh b \
  --frontend dockerfile.v0 --local context=. --local dockerfile=. \
  --export-cache type=local,dest=/tmp/foo \
  --import-cache type=local,src=/tmp/foo
[+] Building 0.0s (0/0)                                                                                                                                                                                
error: could not read /tmp/foo/index.json: open /tmp/foo/index.json: no such file or directory
nvpandeti commented 4 years ago

Hi I'm currently taking a Virtualization course at UT Austin that requires us to contribute to an open source project. If possible I'd like to take a shot at this issue.

AkihiroSuda commented 4 years ago

thanks, please