bukweet Posted September 2, 2021 Share Posted September 2, 2021 (edited) I wanted to post this is in the Docker Containers forum but it looked like that is more aimed at Community Apps? Let me know if this is in the wrong place. Anyhow, I've got me this docker image that runs a python app. It works just fine on my local machine, but when I pull it down to my unraid server I can't get it to run. Here is the log that the container spits out: WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested standard_init_linux.go:219: exec user process caused: exec format error I'm using the official python docker hub image for the base containers. In trying to troubleshoot I've rebuilt with a few different ones: rc-alpine3.13, alpine3.13, and am currently using python:3 I've gotten the same error message with all base images. Here is the current Dockerfile FROM python:3 WORKDIR /cord COPY requirements.txt requirements.txt RUN apt-get update RUN apt-get install libffi-dev -y RUN apt-get install build-essential -y RUN apt-get install ffmpeg -y RUN pip3 install -r requirements.txt COPY . . CMD ["python3","bot.py"] I'm all out of google searches and any help is appreciated, thanks! Edited September 3, 2021 by bukweet solved Quote Link to comment
Squid Posted September 2, 2021 Share Posted September 2, 2021 Unraid does not support running ARM applications. Most applications if it supports ARM would also support x86 (look at the available tags on dockerHub) Quote Link to comment
hoppers99 Posted September 2, 2021 Share Posted September 2, 2021 Try FROM amd64/python:3 Quote Link to comment
bukweet Posted September 2, 2021 Author Share Posted September 2, 2021 10 minutes ago, Squid said: Unraid does not support running ARM applications. Most applications if it supports ARM would also support x86 (look at the available tags on dockerHub) Yeah, I was kind of picking that up from the linux/arm64/v8 bit of the error message, and started trying different tags because of it. For example I've tried this one: docker pull python:alpine3.13 and it gets me to the same error. From what I can tell, and please tell me if I'm wrong, this image is for amd64, yes? Quote Link to comment
hoppers99 Posted September 2, 2021 Share Posted September 2, 2021 That image has amd and arm variants (and 386) as a shared tag (read the Description page of the docker image you're looking at and it'll give you a link to explain what a shared tag is). As the system isn't detecting/selecting the correct architecture automagically, you need to specify a "simple tag". So, read lower on that same page and it will give you links. Which brings me back to... Try: FROM amd64/python:3 Quote Link to comment
bukweet Posted September 2, 2021 Author Share Posted September 2, 2021 41 minutes ago, hoppers99 said: That image has amd and arm variants Bingo-bango-bongo! That did the trick. Thanks heaps for the explination. Quote Link to comment
hoppers99 Posted September 2, 2021 Share Posted September 2, 2021 Great to hear! Good luck with whatever you're trying to achieve. To help everyone out can I ask that you update the thread title to show it is (SOLVED). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.