Update Podman documentation#8122
Conversation
With the release of Dev Containers v0.399 there is no need to update a devcontainers.json to make it work with Podman (c.f. microsoft/vscode-remote-release#10706). And commands like “Dev Containers: Try a Dev Container Sample” and “Dev Containers: Clone Repository in Container Volume…” that used to fail with Podman are now fixed (c.f. microsoft/vscode-remote-release#10706) Also some informations in the documentation were outdated: - Podman isn't Linux-only but currently supports Windows and macOS too - Podman allows Docker-from-Docker now (in both rootless in rootful mode) - Podman supports both Docker-Compose and Podman-Compose (with a priority for Docker-Compose) Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
|
@microsoft-github-policy-service agree company="Red Hat" |
|
cc @chrmarti |
|
@l0rd Would the |
|
From my tests |
|
I still need that flag plus
The configuration for this dev container is such that the container is started as root, but VS Code then uses a regular user to work with it. Most of our prebuilt images have this setup to allow for entrypoints running as root but then dev tools run as a regular user. |
|
@chrmarti I have done some investigations and on Windows WSL and macOS things work out of the box: no need for On Linux things are a little bit more complicated but we may solve the problem if the Dev Containers extension:
With these two changes, setting the Here is a detailed explanation:
(*) it may work without that option depending on the existing labels and permissions of the folder that we want to bind mount, but to always work, To set the relabel option there are multiple options (the bold one may be more adapted for Dev Containers):
To set userns to keep-id there are multiple options too (the bold one may be more adapted for Dev Containers):
|
|
@l0rd Thanks! Continuing in microsoft/vscode-remote-release#10798. |
With the release of Dev Containers v0.399, there is no need to update a devcontainers.json to make it work with Podman (c.f. microsoft/vscode-remote-release#10706).
And commands like “Dev Containers: Try a Dev Container Sample” and “Dev Containers: Clone Repository in Container Volume…” that used to fail with Podman are now fixed (c.f. microsoft/vscode-remote-release#10706)
Also, some Podman details were outdated:
Docker-from-Dockernow (in both rootless and rootful mode)