Update podman example.
This commit is contained in:
parent
dfabef87b0
commit
b364647134
|
@ -1,6 +1,8 @@
|
||||||
#
|
#
|
||||||
# Example systemd service file for running container
|
# Example systemd service file for running container
|
||||||
#
|
#
|
||||||
|
# Image needs to be build/available locally.
|
||||||
|
#
|
||||||
# Install into /etc/systemd/system/docker-hellomicronaut.service
|
# Install into /etc/systemd/system/docker-hellomicronaut.service
|
||||||
# systemctl daemon-reload
|
# systemctl daemon-reload
|
||||||
# systemctl enable docker-hellomicronaut.service
|
# systemctl enable docker-hellomicronaut.service
|
||||||
|
|
27
doc/podman-hellomicronaut.service
Normal file
27
doc/podman-hellomicronaut.service
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#
|
||||||
|
# Example systemd service file for running container
|
||||||
|
#
|
||||||
|
# Image needs to be build/available locally.
|
||||||
|
#
|
||||||
|
# Install into /etc/systemd/system/podman-hellomicronaut.service
|
||||||
|
# systemctl daemon-reload
|
||||||
|
# systemctl enable podman-hellomicronaut.service
|
||||||
|
# systemctl start podman-hellomicronaut.service
|
||||||
|
#
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Hellomicronaut Container
|
||||||
|
#After=docker.service
|
||||||
|
#Requires=docker.service
|
||||||
|
#User=nobody
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
TimeoutStartSec=0
|
||||||
|
Restart=always
|
||||||
|
ExecStartPre=-/usr/bin/podman stop %n
|
||||||
|
#ExecStartPre=-/usr/bin/docker rm %n
|
||||||
|
#ExecStartPre=/usr/bin/docker pull redis
|
||||||
|
ExecStart=/usr/bin/podman run --rm --name %n --publish 8080:8080 hellomicronaut
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue