running podman with systemd-run --property "RestrictAddressFamilies=AF_UNIX AF_NETLINK" ...
#18311
eriksjolund
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for sharing, @eriksjolund ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is just a follow-up to
In that discussion thread from May 2022, the command
systemd-run
was not discussed (only the use of systemd service units).I just want to add that it seems to work with
systemd-run
too.Minimal demo with systemd-run
This demo shows that it's possible to use podman even when the podman command itself has no access to the internet. For this to work add
--pull never --network none
I created three scripts
--pull always --network none
--pull never --network none
--pull never
Details
test1.sh contains
test2.sh has almost the same contents as test1.sh
test3.sh has almost the same contents as test2.sh
Run commands
Beta Was this translation helpful? Give feedback.
All reactions