You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When execing into the k3s image, the root user (that k3s runs as) has no userinfo (no name, default home dir, groups, so on)
/ # PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '@k3s-server-1:/# iduid=0 gid=0 groups=0@k3s-server-1:/# whoamiwhoami: cannot find name for user ID 0: No such file or directory@k3s-server-1:/# groupsgroups: cannot find name for group ID 00@k3s-server-1:/# cat /etc/passwdcat: /etc/passwd: No such file or directory
This doesn't necessarily break anything, but it is somewhat irritating if you're trying to interact with the container and expect userinfo to be available.
The text was updated successfully, but these errors were encountered:
Node(s) CPU architecture, OS, and Version:
SUSE Linux Enterprise Server 15 SP4
Cluster Configuration:
1 server
Steps to validate the fix
run k3s on docker and exec into it
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
When execing into the k3s image, the root user (that k3s runs as) has no userinfo (no name, default home dir, groups, so on)
This doesn't necessarily break anything, but it is somewhat irritating if you're trying to interact with the container and expect userinfo to be available.
The text was updated successfully, but these errors were encountered: