Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker warning - image platform doesn't match host platform #299

Closed
Baenwort opened this issue Dec 3, 2021 · 3 comments
Closed

Docker warning - image platform doesn't match host platform #299

Baenwort opened this issue Dec 3, 2021 · 3 comments

Comments

@Baenwort
Copy link

Baenwort commented Dec 3, 2021

When starting restreamer on a Pi I get:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
3aa7aedf0c3ffd9aa394c9ca15f4bc93f9ce5af9a558d47f4dee15da91b83264

The fix can be seen in what pi-hole went through here:

pi-hole/docker-pi-hole#735

The short answer is this is a problem with the cross building process. Docker is now detecting this and flagging the error saying it was built in correctly. To fix it you need to update how you use buildx so that it flags the architecture properly.

@ioppermann
Copy link
Member

@Baenwort The error message suggests that you are using the wrong image. You should use datarhei/restreamer-armv7l:latest instead of datarhei/restreamer:latest.

https://datarhei.github.io/restreamer/docs/installation-linux-arm.html

@Baenwort
Copy link
Author

Baenwort commented Dec 8, 2021

Hi, I'm using the datarhei/restreamer-armv6l:latest as it is a Pi Zero W.

This error occurs with the above image. Per the troubleshooting over in PiHole and other projects this is caused by a change in the latest version of Docker that causes it to flag on images built on other platforms that are using a older build process that doesn't set the flags how Docker expects. It used to ignore it and now gives that warning.

The image still works it just throws a warning.

@svenerbeck
Copy link
Member

Please check this with the Restreamer v2 🚀. We would be happy to receive feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants