From 586d95a4f00b29f64cdd72f2184ea09dc296a9c5 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 1 Jun 2020 12:19:27 +0100 Subject: [PATCH] Dockerfile: Add note about mounting volumes with selinux --- extras/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extras/Dockerfile b/extras/Dockerfile index e80ca26c..3228879b 100644 --- a/extras/Dockerfile +++ b/extras/Dockerfile @@ -17,6 +17,13 @@ # # docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb --volume ${PWD}:/workspace --workdir /workspace wa # +# If using selinux you may need to add the `z` option when mounting +# volumes e.g.: +# --volume ${PWD}:/workspace:z +# Warning: Please ensure you do not use this option when mounting +# system directores. For more information please see: +# https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label +# # The above command starts the container in privileged mode, with # access to USB devices. The current directory is mounted into the # image, allowing you to work from there. Any files written to this