Skip to content

Commit

Permalink
docs: Document permissions issue with Docker
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fabianishere committed Apr 30, 2020
1 parent acfedfd commit b72d9c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b72d9c0

Please sign in to comment.