Repository navigation
feat: add host.containerImage to import containers from the host - #10810
Conversation
3f8d9de to
8f0618a
Compare
8f0618a to
62eb2f1
Compare
bc6b054 to
6201f96
Compare
9fc3b99 to
2d2a818
Compare
|
hi! what's the status on this? 😁 |
2d2a818 to
97a62f6
Compare
|
@jedevc how do you differentiate between "container instance" and "container image" on the host system? |
|
This is probably a naming issue, this PR only lets you import images, not running containers. I could call it |
IMO |
|
Alternatively, you can keep |
|
I don't love WDYT about having |
It's normal that we don't have that language anywhere else:
I think |
97a62f6 to
d69379b
Compare
|
Renamed from |
host.containerImage to import containers from the host
Signed-off-by: Justin Chadwell <[email protected]>
d69379b to
b286e85
Compare
|
If anyone has spare review time, don't think this one should be too hard! |
Signed-off-by: Justin Chadwell <[email protected]>
b286e85 to
e481a99
Compare
vito
left a comment
There was a problem hiding this comment.
lgtm!
To be honest I'm also iffy on the name, but I see it's already been bikeshedded and I don't have a great proposal. I can see why Host.container was too vague. It's tempting to do something like Container.fromHostImage because then it sounds like the returned object is a "container" and not a "container image" but that would be inconsistent with other Host-loading things.
Maybe Host.containerFromImage would fix that for me, but then it's getting a bit long, and even despite the length is still vague (what kind of image? maybe this is really from a container runtime? but is there a good word for that everyone would grok?).
🤔 🤔
| ctx, span := otel.Tracer("").Start(ctx, "save "+name) | ||
| defer telemetry.End(span, func() error { return rerr }) | ||
|
|
||
| cmd := exec.CommandContext(ctx, "container", "image", "save", name) |
There was a problem hiding this comment.
oh nice, was wondering what things this would be compatible with, glad it's extensible
|
Thanks for the approve 🙏 I'll merge for now, I'm not super in love with I don't really like |
Fixes #10737 as a follow-up to #10662.