First of all, thanks for the plugin. Running LSP from devcontainer was the feature I wanted for a while.
I use podman instead of docker, and starting devcontainer with :DevcontainersUp fails.
My LSP config for python looks something like this:
require("devcontainers").setup({
docker_cmd = "podman", -- Found this in config.lua
log = { level = "trace" }
})
vim.lsp.config("pylsp", { cmd = require("devcontainers").lsp_cmd({ "pylsp" })})
When I run :DevcontainersUp, I get Starting devcontainer in /path_to_project: FAILED: code=1 status=nil
Checking log with :DevcontainersLog doesn't give much of a clue:
[2026-02-21 16:59:53.195270|TRACE] docker.events: subscribed: cache.invalidate
[2026-02-21 16:59:53.195698|TRACE] manager: devcontainer_up: /path_to_project
[2026-02-21 16:59:53.410814|TRACE] Command took 214.635 ms: devcontainer up --workspace-folder /path_to_project
Upon switching to docker (without docker_cmd in the option), the devcontainer starts and the plugin works as expected.
I'm not a lua guy, but the following might help debug the issue.
- When I open a python file, I get
.../nvim/lazy/devcontainers.nvim/lua/devcontainers/init.lua:96: attempt to index local 'config' (a nil value)
devcontainer-cli has --docker-path option, so without this plugin I have to do $ devcontainer --docker-path podman up to start devcontainer. Not sure if this is set properly in the plugin, though.
First of all, thanks for the plugin. Running LSP from devcontainer was the feature I wanted for a while.
I use podman instead of docker, and starting devcontainer with
:DevcontainersUpfails.My LSP config for python looks something like this:
When I run
:DevcontainersUp, I getStarting devcontainer in /path_to_project: FAILED: code=1 status=nilChecking log with
:DevcontainersLogdoesn't give much of a clue:Upon switching to docker (without
docker_cmdin the option), the devcontainer starts and the plugin works as expected.I'm not a lua guy, but the following might help debug the issue.
.../nvim/lazy/devcontainers.nvim/lua/devcontainers/init.lua:96: attempt to index local 'config' (a nil value)devcontainer-clihas--docker-pathoption, so without this plugin I have to do$ devcontainer --docker-path podman upto start devcontainer. Not sure if this is set properly in the plugin, though.