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

Docker image for 23.1 fails to run as non-root user #6741

Closed
overholts opened this issue Jan 27, 2023 · 4 comments
Closed

Docker image for 23.1 fails to run as non-root user #6741

overholts opened this issue Jan 27, 2023 · 4 comments
Labels
bug 🐞 Something isn't working

Comments

@overholts
Copy link

Description

Docker image for 23.1 fails to start when running as non-root user.

22.x and prior images work fine with no other change to my config.

Steps to Reproduce (Bug)

Docker compose config (or equivalent --user param) like:

user: "999:1001"

Expected behavior:
Teku docker image runs.

 ⠿ Container teku-goerli        Started

Actual behavior:

 ⠿ Container teku-goerli        Starting
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/opt/teku/bin/teku": stat /opt/teku/bin/teku: permission denied: unknown

Versions (Add all that apply)

  • Software version: 23.1
  • Java version: 17
  • OS Name & Version: Debian 11
  • Docker Version: 20.10.23
  • Cloud VM, type, size: N/A (NUC10i7)
@lucassaldanha
Copy link
Member

Hi @overholts ,

Thanks for reporting this bug. We have just pushed 23.1.1 exclusively with a fix for the docker user permission. Would you please let us know if it solves your problem?

@lucassaldanha
Copy link
Member

From Discord:

Seeing permission issues on docker since upgrading: stat /opt/teku/bin/teku: permission denied: unknown
Running as a different user --user UID:GID and it worked fine until the last version?
Runs fine if I change the data directory owners to the current user (1000) and reruns without the user mapping.
(just caught up on the permission differences in adduser in Ubuntu 22.04 -- looking forward to seeing the fix, thanks!)

Waiting on their feedback if the fix works for them.

@lucassaldanha lucassaldanha added the bug 🐞 Something isn't working label Jan 27, 2023
@overholts
Copy link
Author

Yep that fixed it for me, thanks!

@tbenr
Copy link
Contributor

tbenr commented Jan 30, 2023

fixed by #6743

@tbenr tbenr closed this as completed Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants