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

[Release-1.28] - K3s docker image is missing user info for root #9812

Closed
brandond opened this issue Mar 27, 2024 · 1 comment
Closed

[Release-1.28] - K3s docker image is missing user info for root #9812

brandond opened this issue Mar 27, 2024 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Contributor

Backport fix for K3s docker image is missing user info for root

@fmoral2
Copy link
Contributor

fmoral2 commented Apr 15, 2024

Validated on Version:

-$  k3s version v1.28.8+k3s-feb211d3 (feb211d3)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
SUSE Linux Enterprise Server 15 SP4

Cluster Configuration:

  • 1 server

Steps to validate the fix

  1. run k3s on docker and exec into it
  2. Validate user infos

Reproduction Issue:


/k3s$ sudo docker exec -it k3s-server sh
/ # id
uid=0 gid=0 groups=0
/ # k3s -v
k3s version v1.28.8+k3s1 (653dd61a)
go version go1.21.8
/ # whoami
whoami: cannot find name for user ID 0: No such file or directory

 

Validation Results:

 

 ~ # whoami
root
 
~ # cat /etc/passwd /etc/group
root:x:0:0:root:/:/bin/sh
root:x:0:

~ # groups
root

@fmoral2 fmoral2 closed this as completed Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

3 participants