Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building RHEL8 7.2 RUN /usr/libexec/container-setup && rpm-file-permissions Fails #281

Open
redstorm1 opened this issue Feb 11, 2020 · 3 comments

Comments

@redstorm1
Copy link

building s2i-php-container-master\7.2\Dockerfile.rhel8
The step
RUN /usr/libexec/container-setup && rpm-file-permissions
fails with access denide. have tried USER root just prior to this step same result.

020-02-11T23:23:38.0488316Z Step 11/20 : USER root
2020-02-11T23:23:38.0799226Z ---> Running in 71a0b64c4812
2020-02-11T23:23:39.0453161Z Removing intermediate container 71a0b64c4812
2020-02-11T23:23:39.0454474Z ---> ecb16ff6ae3e
2020-02-11T23:23:39.0454914Z Step 12/20 : RUN /usr/libexec/container-setup && rpm-file-permissions
2020-02-11T23:23:39.0744783Z ---> Running in 8c5c1dc02804
2020-02-11T23:23:39.3000133Z �[91m/bin/sh: /usr/libexec/container-setup: Permission denied
2020-02-11T23:23:39.4626100Z �[0mThe command '/bin/sh -c /usr/libexec/container-setup && rpm-file-permissions' returned a non-zero code: 126
2020-02-11T23:23:39.4739985Z ##[error]The command '/bin/sh -c /usr/libexec/container-setup && rpm-file-permissions' returned a non-zero code: 126
2020-02-11T23:23:39.4779070Z ##[error]The process '/usr/bin/docker' failed with exit code 126
2020-02-11T23:23:39.4868737Z ##[section]Finishing: buildAndPush

@redstorm1
Copy link
Author

Same with building 7.3 rhel8

2020-02-11T23:32:34.4892173Z Step 11/19 : RUN /usr/libexec/container-setup && rpm-file-permissions
2020-02-11T23:32:34.5151776Z ---> Running in 7e84e3fe6658
2020-02-11T23:32:34.7147835Z �[91m/bin/sh: /usr/libexec/container-setup: Permission denied
2020-02-11T23:32:34.8833486Z �[0mThe command '/bin/sh -c /usr/libexec/container-setup && rpm-file-permissions' returned a non-zero code: 126
2020-02-11T23:32:34.8961337Z ##[error]The command '/bin/sh -c /usr/libexec/container-setup && rpm-file-permissions' returned a non-zero code: 126
2020-02-11T23:32:34.9031444Z ##[error]The process '/usr/bin/docker' failed with exit code 126
2020-02-11T23:32:34.9121458Z ##[section]Finishing: buildAndPush

@redstorm1
Copy link
Author

FIX

Add above the problematic step.


USER root
RUN chmod +x /usr/libexec/container-setup


@pkubatrh
Copy link
Member

Hi @redstorm1, thanks for opening the issue.
As far as I can see libexec/container-setup already has permissions to execute, so likely the problem is caused by some configuration on your side (umask?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants