From 591e4d875bf5c3c4ba9bc3af78177944290a4de5 Mon Sep 17 00:00:00 2001 From: Sam Mingo Date: Thu, 27 Sep 2018 04:12:55 -0400 Subject: [PATCH] Adds details for using docker chcon permissions (#12) Adds details for using docker chcon permissions --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cb5f1f..05cd039 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,21 @@ Requirements: - Docker -`docker run --rm --volume "$(pwd):/output" captn3m0/google-sre-ebook:latest` +``` +$ docker run --rm --volume "$(pwd):/output" captn3m0/google-sre-ebook:latest +``` - You should see the final EPUB/MOBI/PDF files in the `output` directory after the above runs. - The file may be owned by the root user. +**NOTE:** You'll have to allow docker access to a directory that's local to your system. The safest way to do this is as follows: + +``` +$ mkdir /tmp/sreoutput +$ chcon -Rt svirt_sandbox_file_t /tmp/sreoutput +$ docker run --rm --volume "/tmp/sreoutput:/output" captn3m0/google-sre-ebook:latest +``` + The build for the above Docker image can be audited at . ## macOS