shiplift icon indicating copy to clipboard operation
shiplift copied to clipboard

Recreate container

Open dbrgn opened this issue 6 years ago • 3 comments

I'm trying to write a tool that pulls an image and recreates an existing container.

To create a container, I need to provide a ContainerOptions instance.

Is there a way to extract the ContainerOptions from an existing container by inspecting it? Could we maybe impl From<ContainerDetails> for ContainerOptions?

dbrgn avatar Jun 12 '18 20:06 dbrgn

That approach sounds very cool

softprops avatar Oct 09 '18 00:10 softprops

I'm trying to do the same and am new to Rust. Did you find a way to do it? In Python i just used the data from inspect, removed some keys and moved everything in the "Config" key up to the main dict. But i now tried for hours and cant seem to get shiplift to just accept a HashMap or create ContainerOptions out of it

TECHNOFAB11 avatar May 26 '21 16:05 TECHNOFAB11

Did you find a way to do it?

No, I started using watchtower instead 😄

dbrgn avatar May 26 '21 16:05 dbrgn