• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python
#1
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.)
  Reply
#2
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
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
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.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  error when using GPIO from Python dcatteeu 4 4,416 September-10th-2019, 02:45 PM
Last Post: dcatteeu

Forum Jump:


Users browsing this thread: 1 Guest(s)