-
[containers] env = [ "BUILDAH_FORMAT=docker" ] label = false userns = "keep-id" -
# Comment out this line unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "docker.io", "quay.io"] # Instead add the following line unqualified-search-registries = ["docker.io"]
-
$ systemctl --user enable --now podman.socket $ # check the status $ systemctl --user status podman.socket $ curl -w "\n" -H "Content-Type: application/json" \ --unix-socket /var/run/user/$UID/podman/podman.sock \ http://localhost/_ping $ # This should return OK -
export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock -
$ rpm-ostree install podman-compose
-
Give Flatpak vscode write permission to /tmp folder
$ flatpak override --user --filesystem=/tmp com.visualstudio.code -
Download host-spawn
-
Copy host-spawn binary to directory
$HOME/.var/app/com.visualstudio.code/data/node_modules/binand make it executable.$ chmod +x host-spawn -
Create two symlinks in
$HOME/.var/app/com.visualstudio.code/data/node_modules/bin$ ln -s host-spawn podman -
Configure Dev Container VSCode extension Docker path as podman
-
Install
Dev Containersextension -
In your
devcontainer.jsonfile, you must setremoteUserandcontainerUserproperly. For base image from Microsoft set both properties to vscode."remoteUser": "vscode", "containerUser": "vscode", -
To access local workspace folder from container set the propery
workspaceMountas"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z"