From b72d9c03c2a7c1967bac5e270e60026921cb5ff2 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 30 Apr 2020 20:11:51 +0200 Subject: [PATCH] docs: Document permissions issue with Docker This change documents the issue that Docker causes the build folder to be owned by the root user (since Docker runs as root). Thanks @pief for spotting this. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 814d3ea..3e0826d 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,13 @@ follows. Make sure you run the command in the project root directory. $ docker run --rm -it -v `pwd`:/root/boot2flappy fabianishere/boot2flappy ``` -This will build the project in the `build/` directory. +This will build the project in the `build/` directory. Since Docker runs as +root user, you need to fix the permissions of the build directory in order +to run the game: + +```shell +$ sudo chown -R $USER:$USER build/ +``` ## Playing