-
Notifications
You must be signed in to change notification settings - Fork 5k
Update Podman documentation #8122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]>
@microsoft-github-policy-service agree company="Red Hat" |
cc @chrmarti |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
@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-Docker
now (in both rootless and rootful mode)