evert.io

Back

Trying to use Podman with Development Containers without first modifying the devcontainer.json results in access denied errors within the container.

Add the following to devcontainer.json.

"runArgs": [
		"--userns=keep-id",
		"--security-opt=label=disable"
	  ],
"containerEnv": {
		"HOME": "/home/vscode" // TODO: change to the directory of the default user in the container
	},
json

Related issues:

Using Dev Containers with Podman and Selinux
https://astro-pure.js.org/blog/dev-containers-podman
Author Evert Geldenhuys
Published at 15 June 2024