Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dev_l1x_be
3 months ago
|
parent
|
context
|
favorite
| on:
I ditched Docker for Podman
What is the current way of running a dokcer container as a systemd service? Is it podman?
ethagnawl
3 months ago
[–]
Just create a unit file that starts/stops/restarts/etc. the container.
dev_l1x_be
3 months ago
|
parent
[–]
what do you mean exactly? What is the tool that you invoke? Or you use systemd's container executing ability?
ethagnawl
3 months ago
|
root
|
parent
[–]
Whenever I've done this, I've used the system service's ExecStart|Stop directives to run a Bash script which handles starting/stopping the container (e.g. `docker run ...`) and any other setup teardown behavior that's appropriate.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: