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

Elpis on M1 machines gives Warning #297

Open
benfoley opened this issue Jul 4, 2022 · 2 comments
Open

Elpis on M1 machines gives Warning #297

benfoley opened this issue Jul 4, 2022 · 2 comments

Comments

@benfoley
Copy link
Contributor

benfoley commented Jul 4, 2022

Running Elpis on an M1 Mac gives this warning:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Looks like this could be avoided by specifying the platform in the Dockerfile, suggested here: https://stackoverflow.com/a/71594540

export DOCKER_BUILDKIT=0                                                                                                                                                    
export COMPOSE_DOCKER_CLI_BUILD=0
export DOCKER_DEFAULT_PLATFORM=linux/amd64
@benfoley
Copy link
Contributor Author

benfoley commented Jul 4, 2022

Temporary fix, use --platform linux/amd64 in the docker run command.

@benfoley
Copy link
Contributor Author

benfoley commented Jul 4, 2022

Also, may need to use the platform arg when doing docker build. Check this and then update the docs.

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

1 participant