Update README.md (#2809)

Add example for Podman-run
This commit is contained in:
Ilmari 2024-02-26 21:03:47 +02:00 committed by GitHub
parent f6fe7a9917
commit deebad02f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,25 @@ $ docker run --cap-add=NET_ADMIN -d \
haugene/transmission-openvpn haugene/transmission-openvpn
``` ```
### Podman run
Beware: container is run as privileged, meaning it has full access to host OS.
```
$ podman run --privileged -d \
-v /your/storage/path/:/data \
-v /your/config/path/:/config \
-e OPENVPN_PROVIDER=PIA \
-e OPENVPN_CONFIG=france \
-e OPENVPN_USERNAME=user \
-e OPENVPN_PASSWORD=pass \
-e LOCAL_NETWORK=192.168.0.0/16 \
--log-driver k8s-file \
--log-opt max-size=10m \
-p 9091:9091 \
haugene/transmission-openvpn
```
### Docker version 3.x Compose ### Docker version 3.x Compose
``` ```
version: '3.3' version: '3.3'