Allow other users to read the /opt/teku dir when using docker #6740
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
The problem is that if we try to run the teku container with any other user that has a differen uid than
1000
, we won't be able to execute the teku binary due to the permissions of the working dir (/opt/teku
) being too strict 0770. I'm changing the permissions to 0775 so that other users can also read the directory and execute the teku binary.Example on how this fails currently with other users than 1000
$ docker pull consensys/teku $ docker run --rm -it --entrypoint ls --user=1000 consensys/teku LICENSE bin lib licenses teku.autocomplete.sh $ docker run --rm -it --entrypoint ls --user=1003 consensys/teku ls: cannot open directory '.': Permission denied
Fixed Issue(s)
Documentation
doc-change-required
label to this PR if updates are required.Changelog