docs: Add instructions for OCI export from Docker#4135
docs: Add instructions for OCI export from Docker#4135deitch merged 1 commit intolinuxkit:masterfrom
Conversation
940de8a to
53770a1
Compare
docs/image-cache.md
Outdated
There was a problem hiding this comment.
This line is not completely correct. You can produce multi-platform images this way using a docker-container builder (actually, this is exactly how linuxkit pkg build does it). You just need to do --platform linux/amd64,linux/arm64,etc.
Maybe just remove this line?
There was a problem hiding this comment.
apologies - it was more "the above, as described". I presume diff arches would need some underlying qemu magic to assist the builds too?
I'll reword slightly to indicate something closer to the truth.
There was a problem hiding this comment.
magic to assist the builds too?
Depends on the case. If you use docker desktop, it already is done. You are right, though, there is more to do. Well, sort of. If you use some of buildkit's capabilities for cross-compiling, you might never need emulation.
OK, I am getting way too far into the weeds for this. If you want to discuss cross-builds on Slack, more than happy to. :-)
There was a problem hiding this comment.
FYI, for builds, I often use linuxkit pkg build as an opinionated version. It builds multiple platforms, stores in a the cache, etc.
Signed-off-by: Daniel Smith <daniel@razorsecure.com>
53770a1 to
6b067a6
Compare
|
In any case, thank you for this. |
- What I did
Modified
docs/image-cache.mdto note how one can export from a local docker instance into linuxkitcloses #4126
- How I did it
NA
- How to verify it
NA
- Description for the changelog
Add instructions for importing images from local docker instance
- A picture of a cute animal (not mandatory but encouraged)