Custom Docker Image on F2-210

Discussion about Docker
Locked
User avatar
BlackHand69
Posts: 1
Joined: 01 Nov 2022, 22:29

Custom Docker Image on F2-210

Post by BlackHand69 »

Hello all,

I'm currently struggling with my F2-210 as I'm trying to run a simple python script on it.
I created a docker image that runs successfully locally but cannot be imported into Docker on my NAS.

After doing some research on this board I've found this topic viewtopic.php?t=2341 which helped me out to understand that I need to create the image for the corresponding cpu architecture on the NAS. The problem is I still get an error message as I try to import the adjusted image.

Here is my example Dockerfile

Code: Select all

#!/bin/bash
FROM python:3
ADD bot.py /
ADD .env /
RUN pip install -U discord.py==1.7.3
RUN pip install python-dotenv
CMD python3 bot.py
and the builds I did with it

Code: Select all

docker build -t python-courier --platform linux/arm64 .
docker build -t python-courier --platform linux/arm/v5 .
docker build -t python-courier --platform linux/arm/v6 .
docker build -t python-courier --platform linux/arm/v7 .
docker build -t python-courier --platform linux/arm/v8 .
With each build the Docker import prompts the following error:
Image

Is anyone able to hint me into the right direction or can provide some solution?
Locked