mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
rootless: fix "stat /run/user/1000: no such file or directory" on kubectl run
k3s was mounting a tmpfs on `/run` by itself, so it was hiding RootlessKit's `/run`. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
67410d2757
commit
43f7eaedf8
@ -15,8 +15,6 @@ import (
|
||||
|
||||
func setupMounts(stateDir string) error {
|
||||
mountMap := [][]string{
|
||||
{"/run", ""},
|
||||
{"/var/run", ""},
|
||||
{"/var/log", filepath.Join(stateDir, "logs")},
|
||||
{"/var/lib/cni", filepath.Join(stateDir, "cni")},
|
||||
{"/var/lib/kubelet", filepath.Join(stateDir, "kubelet")},
|
||||
|
Loading…
Reference in New Issue
Block a user