lspcontainers / lspcontainers.nvim

Neovim plugin for lspcontainers.
Apache License 2.0
307 stars 33 forks source link

Running x64 containers on apple arm #109

Open igorr-reco opened 1 month ago

igorr-reco commented 1 month ago

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 commented 1 month ago

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.