~esensar/nvim-dev-container-discuss

1

How to get a terminal inside the container

Linus Marton <mail@linusmarton.com>
Details
Message ID
<b7a731d2-ba33-4ead-8841-a9f57b48f24c@app.fastmail.com>
DKIM signature
missing
Download raw message
Hi!

I can run `:DevcontainerStart` and `:DevcontainerAttach` successfully. I get a tab with another neovim which works. But, can I somehow get a terminal sesson that is running inside the container? If I run `:terminal` I get a terminal, but it's not running inside the container.
I have seen when people use vscode that they get dropped into a terminal, running inside the container itself so they have access to all commands etc installed inside.
Details
Message ID
<CX63WKLWHS4K.2BE291ZBD9GIO@fedora>
In-Reply-To
<b7a731d2-ba33-4ead-8841-a9f57b48f24c@app.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
On Thu Nov 23, 2023 at 11:03 AM CET, Linus Marton wrote:
> Hi!

Hi!

Thanks for trying the plugin and reaching out!

> I can run `:DevcontainerStart` and `:DevcontainerAttach` successfully. I get a tab with another neovim which works. But, can I somehow get a terminal sesson that is running inside the container? If I run `:terminal` I get a terminal, but it's not running inside the container.

If you are running one of the more recent versions, you should be able
to pass a command to `:DevcontainerAttach` - by default it is `nvim`,
but by running `:DevcontainerAttach sh` you should be able to get a
terminal session.

Let me know if that works for you!

-- 
Ensar Sarajčić
w: www.ensarsarajcic.com
Reply to thread Export thread (mbox)