containerd / containerd/nerdctl

./nerdctl -n k8s.io exec -it -u root <container-id> -- sh when set -u <user>, then kernal report "lowerdir is in-use as upperdir/workdir of another mount"

Open
#2,707 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### Description

./nerdctl -n k8s.io exec -it -u root -- sh
when use "nerdctl" tool exec container, set flags -u event if root, the kernal must report logs "overlayfs: lowerdir is in-use as upperdir/workdir of another mount, accessing files from both mounts will result in undefined behavior."

if not set -u , it is ok

### Steps to reproduce the issue

1. ./nerdctl -n k8s.io exec -it -u root -- sh
image

2.
dmesg -T logs:
image

### Describe the results you received and expected

when set -u , it is ok..
whichi lead to write file in container error "no such file or directory"

### What version of containerd are you using?

1.6.9, 1.6.26

### Any other relevant information

_No response_

### Show configuration if it is related to CRI plugin.

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.