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

Running x64 containers on apple arm #109

Open
igorr-reco opened this issue Jul 9, 2024 · 1 comment
Open

Running x64 containers on apple arm #109

igorr-reco opened this issue Jul 9, 2024 · 1 comment

Comments

@igorr-reco
Copy link

When trying to use lspcontainers on arm mac, I'm getting errors like

[ERROR][2024-07-09 17:14:18] .../vim/lsp/rpc.lua:770 "rpc" "/usr/local/bin/docker" "stderr" "Unable to find image 'lspcontainers/typescript-language-server:latest' locally\n"
[ERROR][2024-07-09 17:14:20] .../vim/lsp/rpc.lua:770 "rpc" "/usr/local/bin/docker" "stderr" "latest: Pulling from lspcontainers/typescript-language-server\n"
[ERROR][2024-07-09 17:14:20] .../vim/lsp/rpc.lua:770 "rpc" "/usr/local/bin/docker" "stderr" "docker: no matching manifest for linux/arm64/v8 in the manifest list entries.\nSee 'docker run --help'.\n"

As far as I understand rosetta allows to run x64 containers on arm chips. But I'm a bit struggling to understand what should I change in setup to make lspcontainers to download x64 containers and run those instead of searching for containers build specifically for arm

Will be very glad for any hints :)

@hbjydev
Copy link

hbjydev commented Jul 11, 2024

We could probably look at putting --platform linux/amd64 on the run commands... I've not spent much time in this codebase though so I wouldn't know the best way to implement it.

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

2 participants