Podman support (with systemd)
Please add OOTB support for running containers using Podman, with the possibility to use containers that utilize systemd
While adding
packages = [
pkgs.podman
];
podman will not run. Some of the issues might be related to the nix package, but some are related to the environment.
The default policy is missing and no /var/tmp
. Had to fix this as follows:
onCreate = {
# this is to fix Podman: https://github.com/gbraad-devenv/idx/issues/3
setup-podman = ''
mkdir /etc/containers/
cat >> /etc/containers/policy.json <<EOF
{ "default" : [ { "type": "insecureAcceptAnything"} ]}
EOF
mkdir /var/tmp
'';
};
After these minor changes, podman can at least run.
https://issuetracker.google.com/issues/370543478
But containers that use systemd, seem to be failing.
https://issuetracker.google.com/issues/370546381
5
votes
Gerard Braad
shared this idea