Skip to content

Commit

Permalink
podman.md: Clarify container name for systemd service (rocky-linux#…
Browse files Browse the repository at this point in the history
  • Loading branch information
neelchauhan authored Mar 27, 2024
1 parent f9fb319 commit 0f54d0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/gemstones/containers/podman.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ You will get a list of running containers:
04f7553f431a docker.io/library/nextcloud:latest apache2-foregroun... 5 minutes ago Up 5 minutes 0.0.0.0:8080->80/tcp compassionate_meninsky
```

As seen above, our container's name is `compassionate_meninsky`.
To make a `systemd` service for the Nextcloud container and enable it on reboot, run the following:
```bash
podman generate systemd --name compassionate_meninsky > /usr/lib/systemd/system/nextcloud.service
systemctl enable nextcloud
```
Replace `compassionate_meninsky` with your container's assigned name.

When your system reboots, Nextcloud will restart in Podman.

0 comments on commit 0f54d0f

Please sign in to comment.