Podman Usage Improvements #6759
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
podman
Dev Container using Podman
Milestone
Improve default handling of both user Home directories and the use of Podman.
This post is mostly to document Podman specific configuration for devcontainer.json to get it working in a friendly fashion. The feature request part is more of a plea to improve the default support so a lot of this custom config is unnecessary.
1.1 Mounting the users home directory is important as it solves the git + ssh issue as your keys and git config will be available inside the container (not everyone uses an ssh agent). It also exposes other user configs such as git configuration, bash configuration, and other tooling. The end result is a better default environment to work out of.
3.1. 'Z'/'z' should be avoided in bind/volume mounts as it changes the selinux context on files permanently which can break regular access to those files. For instance if you were to mount
$HOME/.ssh
you would break key based ssh authentication for that user until the context is manually reset.settings.json
devcontainer.json (podman specific settings)
Relates to: Remote - Containers
The text was updated successfully, but these errors were encountered: