Hilscher Community Forum
Push / Get Images from NetPi - 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: Push / Get Images from NetPi (/thread-186.html)



Answer - Jonas.Sellmann@outlook.de - May-16th-2018

Hello,

is there an opportunity to push images from NetPi to Docker Hub or to copy the images to a local machine.
I know that the NetPi should be used as production system only and that the development should be done on a normal raspberry pi, but somestimes I have to make some modifications in the container afterwards.

Thanks in advance,

Jonas


Answer - Armin@netPI - May-16th-2018

Yes Jonas,

I agree. Pushing images is disabled on netPI and it reports "success" always even it internally it doesn't push anything. I have addressed this topic now in the development team and I will update you when I will be releasing the next software that supports pushing docker images.


Answer - Armin@netPI - July-17th-2018

Jonas, with software version V1.1.3.0RC3 pushing an pulling images from/to a Registry is now possible.


Answer - vlerants - August-13th-2018

Hello Armin,

Can you please show me the steps how to push image from portainer (netPI) to Docker Hub?
I've modified an existing Image and created a new one using the option 'Create Image' from existing Container on Portainer, and now I would like to Push it on Docker Hub.

Thanks,
Vlerant


Answer - Armin@netPI - August-13th-2018

Hello Vlerant,

at the current stage netPI is just a Docker host device only able to pull Docker images hosted somewhere else but it is not able to push to registries such as Docker Hub.

The reason is as follows: I agree that portainer in the version 0.12.4 used on latest version of netPI has to option to create an image from an existing and running netPI container. If you execute it then it is locally stored on netPI. But then whenever to try to push it to a repository you can specify it but it will fail because in no menu pane of portainer you have the possibility to enter the repository user login and password. This has changed in current portainer versions which we have not implemented on netPI because of several reasons.

So in the end this means ... develop a container ready to use on Docker Hub or on a local repository for you immediate use with all the contents you need and from there you pull it on netPI. So basically there you never be a need to push containers from netPI to any other location.


Answer - Armin@netPI - August-14th-2018

Hello Vlerant,

I tried to access netPI's portainer.io from remote using its provided RESTful API over http request. So I do not use the Web GUI in this case. The RESTful API offers indeed ALL Docker functions and this allows you to push images from netPI to Dockerhub registry for example.

I will provide a simple to understand Node-RED flow that shows many functions that can be used and also the API command to push an existing from netPI to Docker hub.