Jelenlegi hely

Docker: podman autostart

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_a...
https://podman.io/blogs/2018/09/13/systemd.html

Podman autostart

Példa:

podman pull docker.io/redis
podman run -d --name redis -p 6379:6379 redis
podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
411a6c6be7d8 docker.io/library/redis:latest docker-entrypoint.s... 10 minutes ago Up 5 minutes ago 0.0.0.0:6379->6379/tcp redis

vi /etc/systemd/system/redis.service
[Unit]
Description=Redis Podman container
Wants=syslog.service
[Service]
Restart=always
ExecStart=/usr/bin/podman start -a redis
ExecStop=/usr/bin/podman stop -t 10 redis
[Install]
WantedBy=multi-user.target

sudo systemctl enable redis.service
sudo systemctl start redis.service

Theme by me