Hilscher Community Forum
Exporting and importing container images - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Exporting and importing container images (/thread-480.html)



Exporting and importing container images - Armin@netPI - August-23rd-2019

Sometimes it is necessary to move a ready evolved container from one netPI to another or to save its current state to an external location.

For this purpose the netPI Docker web GUI features the export and import function.

Here are the steps how to proceed

  1. Supposing you have a running container then click it in the Containers overview page and click Stop first of all to block its SD memory card activities.
  2. In the same window you have the option to create an image of exactly this container. Type in an Image name and press Create. This may take a while.
  3. On the Images overview page you can now recognize a new image named as provided representing a 1:1 copy of your container.
  4. Click its image id and you'll get the option Export this image. Click it and after some minutes (be patient) you'll get a file image.tar as output within your browser context. Save it to anywhere you want.
  5. The way back is to use the Import function within the Images overview page to load it back onto any device.
Make sure you have the netPI system software V1.2.0.0 running since this version uses a prolonged timeout value for the browser connection to successfully bridge the long response time of the image creating function.

Thx
Armin


RE: Exporting and importing container images - COswald - May-20th-2020

Hello Armin,

I would like to take this option to make a copy of my container. But in the overview I'm missing the Image button.

   

In the Images section, I can see the pulled Images. But in my thoughts these are the original images pulled from docker.

   

How can I take a snapshot of my container?

Looking forward your reply,

Carsten


RE: Exporting and importing container images - Armin@netPI - May-20th-2020

Well you have not read point 1 carefully enough.

You want to generate a copy of your container and not an image of an image. So you have to click your container first and use the "create image" button in there. Then afterwards to can make an export of this image. Creating a export file may take several minutes, so patiently wait for it.


RE: Exporting and importing container images - COswald - May-20th-2020

(May-20th-2020, 11:11 AM)Armin@netPI Wrote: Well you have not read point 1 carefully enough.

You want to generate a copy of your container and not an image of an image. So you have to click your container first and use the "create image" button in there. Then afterwards to can make an export of this image. Creating a export file may take several minutes, so patiently wait for it.

You are right, as always!!!