Compare commits

..

No commits in common. "cf3e6ddf85172645ad8ef3e0d2a3f3461396d34c" and "66607673035d097f466a2cf709378423cedcf26a" have entirely different histories.

View file

@ -40,7 +40,7 @@ export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock
To have this environmental variable persistent across reboots, add the above line to the user's `.bash_profile`. To have this environmental variable persistent across reboots, add the above line to the user's `.bash_profile`.
You'll need a configuration file `docker-compose.yml` defined. Here is a sample one that spins up an image updating service. Replace `$UID` with your user id which you can get from running `id -u` in the terminal.[^1] You'll need a configuration file `docker-compose.yml` defined. Here is a sample one that spins up an image updating service.
```yaml ```yaml
version: "3.3" version: "3.3"
@ -55,12 +55,12 @@ services:
PGID: 1000 PGID: 1000
TZ: US/Eastern TZ: US/Eastern
volumes: volumes:
- /var/run/user/$UID/podman/podman.sock:/var/run/docker.sock:ro - /var/run/podman/podman.sock:/var/run/docker.sock:ro
restart: always restart: always
``` ```
If you want to add to add more volumes to the container, make sure it has the appropriate SELinux label if If you want to add to add more volumes to the container, make sure it has the appropriate SELinux label if
you're using a distribution with it enabled.[^2] you're using a distribution with it enabled.[^1]
```bash ```bash
chcon -t container_file_t -R X chcon -t container_file_t -R X
@ -73,5 +73,4 @@ Now we can run `docker-compose`!
docker-compose ps docker-compose ps
``` ```
[^1]: Thanks to Ian Evans for sending in a correction to the volumes declaration. [^1]: https://bugzilla.redhat.com/show_bug.cgi?id=2125878
[^2]: https://bugzilla.redhat.com/show_bug.cgi?id=2125878