You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* README: add podman
Docker always has a tendency to get in my way on Debian. Also, I really
like the userns setup for podman for giving permissions between host and
container.
* Ran linting on README
---------
Co-authored-by: Kieran Eglin <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,23 @@ docker run \
129
129
ghcr.io/kieraneglin/pinchflat:latest
130
130
```
131
131
132
+
### Podman
133
+
134
+
The Podman setup is similar to Docker but changes a few flags to run under a User Namespace instead of root. To run Pinchflat under Podman and use the current user's UID/GID for file access run this:
135
+
136
+
```
137
+
podman run \
138
+
--security-opt label=disable \
139
+
--userns=keep-id --user=$UID \
140
+
-e TZ=America/Los_Angeles \
141
+
-p 8945:8945 \
142
+
-v /host/path/to/config:/config:rw \
143
+
-v /host/path/to/downloads/:/downloads:rw \
144
+
ghcr.io/kieraneglin/pinchflat:latest
145
+
```
146
+
147
+
Using this setup consider creating a new `pinchflat` user and giving that user ownership to the config and download directory. See [Podman --userns](https://docs.podman.io/en/v4.6.1/markdown/options/userns.container.html) docs.
148
+
132
149
### IMPORTANT: File permissions
133
150
134
151
You _must_ ensure the host directories you've mounted are writable by the user running the Docker container. If you get a permission error follow the steps it suggests. See [#106](https://github.com/kieraneglin/pinchflat/issues/106) for more.
0 commit comments