-
-
Save rmb938/52364a4f1de2b4c5d56756c6070bcacb to your computer and use it in GitHub Desktop.
podman system service command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONTAINER_HOST=unix:///run/user/1000/podman/test-podman.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
podman --log-level=debug --root ~/tmp/containers --runroot /run/user/1000/test-containers --tmpdir /run/user/1000/libpod/test-tmp system service -t 0 unix:///run/user/1000/podman/test-podman.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Podman API Service '%I' | |
Documentation=man:podman-system-service(1) | |
[Service] | |
Delegate=true | |
Type=exec | |
KillMode=process | |
Environment=LOGGING="--log-level=info" | |
ExecStart=/usr/bin/podman $LOGGING --root %h/.local/share/%i-containers --runroot /run/user/%U/%i-containers --tmpdir /run/user/%U/libpod/%i-tmp system service -t 0 unix:///run/user/%U/podman/%i-podman.sock | |
[Install] | |
WantedBy=default.target | |
# /usr/lib/systemd/system/service.d/10-timeout-abort.conf | |
# This file is part of the systemd package. | |
# See https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer. | |
# | |
# To facilitate debugging when a service fails to stop cleanly, | |
# TimeoutStopFailureMode=abort is set to "crash" services that fail to stop in | |
# the time allotted. This will cause the service to be terminated with SIGABRT | |
# and a coredump to be generated. | |
# | |
# To undo this configuration change, create a mask file: | |
# sudo mkdir -p /etc/systemd/system/service.d | |
# sudo ln -sv /dev/null /etc/systemd/system/service.d/10-timeout-abort.conf | |
[Service] | |
TimeoutStopFailureMode=abort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Podman API Service | |
Documentation=man:podman-system-service(1) | |
[Service] | |
Delegate=true | |
Type=exec | |
KillMode=process | |
Environment=LOGGING="--log-level=info" | |
ExecStart=/usr/bin/podman $LOGGING --root /home/rbelgrave/tmp/containers --runroot /run/user/1000/test-containers --tmpdir /run/user/1000/libpod/test-tmp system service -t 0 unix:///run/user/1000/podman/test-podman.sock | |
[Install] | |
WantedBy=default.target | |
# /usr/lib/systemd/system/service.d/10-timeout-abort.conf | |
# This file is part of the systemd package. | |
# See https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer. | |
# | |
# To facilitate debugging when a service fails to stop cleanly, | |
# TimeoutStopFailureMode=abort is set to "crash" services that fail to stop in | |
# the time allotted. This will cause the service to be terminated with SIGABRT | |
# and a coredump to be generated. | |
# | |
# To undo this configuration change, create a mask file: | |
# sudo mkdir -p /etc/systemd/system/service.d | |
# sudo ln -sv /dev/null /etc/systemd/system/service.d/10-timeout-abort.conf | |
[Service] | |
TimeoutStopFailureMode=abort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment