From c8df2d8e31ad43c8304ce9ba2e69c586d288f861 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 23 Oct 2021 10:20:19 -0500 Subject: [PATCH] docs: Noted SELinux scenario for volume host directory mount #390 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0d1a1bae..ed56a6f2 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,8 @@ services: - ./minecraft-data:/data ``` +> NOTE: if you have SELinux enabled, then you might need to add `:Z` to the end of volume mount specifications, [as described here](https://prefetch.net/blog/2017/09/30/using-docker-volumes-on-selinux-enabled-servers/). + ### Converting anonymous `/data` volume to named volume If you had used the commands in the first section, without the `-v` volume attachment, then an anonymous data volume was created by Docker. You can later bring over that content to a named or host attached volume using the following procedure.