Skip to content

Compatibility with podman #5

@katsuya-horiuchi

Description

@katsuya-horiuchi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions