Hilscher Community Forum
Python - 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: Python (/thread-204.html)



Answer - SteveO - April-10th-2018

I was able to pull the python image (608.3 MB) from hub.docker.com into my netPI. What are my next steps to install this into a Docker container on the netPI? What settings should I change (runtime, ports, etc., etc.)


Answer - Armin@netPI - April-11th-2018

Hello Steve,

pulling any image from docker hub is wrong way without making sure it is compiled for ARM CPU processors . Nearly 99% of all 100.000+ Docker Hub applications you find there are compiled for x86 processors. They cannot be used. So please be careful of what you are doing.
Pulling python image for an x86 based plattform will work, but not for a Raspberry Pi 3 not for netPI


Answer - Armin@netPI - April-11th-2018

All our docker container examples on Docker Hub rely on base images from company balena like "balenalib/armv7hf-debian:stretch".

I looked to their repository a little closer and checked if they have raspberry CPU ready base images where python is already preinstalled no need to install it extra.

And indeed ... they have a Raspberry Pi ready base image here that you can use right away. But of course such a base image is not the only thing you need. A base image does not include an SSH service if you need any. You need to add it to your image before you make a container of it.

Another possibility is to install our netPI Raspbian OS container from here. This image includes the SSH service and Python 2.x interpreter already.