Skip to content

Commit

Permalink
docs/podman-systemd.unit: Update example to work out of the box
Browse files Browse the repository at this point in the history
- Don't order the container unit before local-fs.target as that creates
  an ordering cycle that triggers other issues.
- Use the example network in the container unit
- Only use groups that exists by default for the volume

Signed-off-by: Timothée Ravier <[email protected]>
  • Loading branch information
travier committed Feb 6, 2023
1 parent a1f9c71 commit c4f338e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/source/markdown/podman-systemd.unit.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,14 @@ Example `test.container`:
```
[Unit]
Description=A minimal container
Before=local-fs.target
[Container]
# Use the centos image
Image=quay.io/centos/centos:latest
# Use volume and network defined below
Volume=test.volume:/data
Network=test.network
# In the container we just run sleep
Exec=sleep 60
Expand Down Expand Up @@ -589,7 +591,7 @@ Example `test.volume`:
```
[Volume]
User=root
Group=projectname
Group=root
Label=org.test.Key=value
```

Expand Down

0 comments on commit c4f338e

Please sign in to comment.