Fix SELinux build issue with :z suffix (#1982)

Podman and docker require the `:z` suffix if running on system where SELinux is enabled (like
Fedora 34). See the follwing links for more information:

 - https://bugzilla.redhat.com/show_bug.cgi?id=1984457
 - https://unix.stackexchange.com/questions/651198/podman-volume-mounts-when-to-use-the-z-or-z-suffix
 - https://stackoverflow.com/questions/35218194/what-is-z-flag-in-docker-containers-volumes-from-option
This commit is contained in:
Michael Mc Donnell 2021-07-21 13:46:52 -07:00 committed by GitHub
parent 983db8cd31
commit 36c395633a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,11 +44,11 @@ docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) . -t deltachat-an
Then, run the image: Then, run the image:
``` ```
podman run --userns=keep-id -it --name deltachat -v $(pwd):/home/app -w /home/app localhost/deltachat-android podman run --userns=keep-id -it --name deltachat -v $(pwd):/home/app:z -w /home/app localhost/deltachat-android
``` ```
or or
``` ```
docker run -it --name deltachat -v $(pwd):/home/app -w /home/app localhost/deltachat-android docker run -it --name deltachat -v $(pwd):/home/app:z -w /home/app localhost/deltachat-android
``` ```
You can leave the container with Ctrl+D or by typing `exit` and re-enter it with You can leave the container with Ctrl+D or by typing `exit` and re-enter it with