We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
This problem occurs when running runc run test.
runc run test
I wonder the cause of this problem and how to fix it, however, I didn't yet find out it..
I got rootfs/ from https://alpinelinux.org/downloads/
rootfs/
$ curl -O http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-minirootfs-3.7.0-x86_64.tar.gz $ mkdir rootfs && tar xf alpine-minirootfs-3.7.0-x86_64.tar.gz -C rootfs $ runc spec && ls config.json rootfs
$ sudo runc run test container_linux.go:348: starting container process caused "chdir to cwd (\"/\") set in config.json failed: permission denied"
119 func finalizeNamespace(config *initConfig) error { ... 154 if config.Cwd != "" { 155 if err := unix.Chdir(config.Cwd); err != nil { 156 return fmt.Errorf("chdir to cwd (%q) set in config.json failed: %v", config.Cwd, err)
338 func (c *linuxContainer) start(process *Process, isInit bool) error { 339 parent, err := c.newParentProcess(process, isInit) 340 if err != nil { 341 return newSystemErrorWithCause(err, "creating new parent process") 342 } 343 if err := parent.start(); err != nil { 344 // terminate the process to ensure that it properly is reaped. 345 if err := ignoreTerminateErrors(parent.terminate()); err != nil { 346 logrus.Warn(err) 347 } 348 return newSystemErrorWithCause(err, "starting container process") 349 }
But I don't know the specific reason very well.. This problem came from alpinelinux rootfs/ ? (cf. busybox example is OK)
I'd appreciate it, if you help this.
The text was updated successfully, but these errors were encountered:
I met the same problem
Sorry, something went wrong.
Apparently, #2086 has shown the reason: Cwd is not owned by root. So chown will do
No branches or pull requests
Hi,
This problem occurs when running
runc run test
.I wonder the cause of this problem and how to fix it,
however, I didn't yet find out it..
Preparation:
I got
rootfs/
from https://alpinelinux.org/downloads/Problem situation:
This problem seems to be related with:
But I don't know the specific reason very well..
This problem came from alpinelinux
rootfs/
?(cf. busybox example is OK)
I'd appreciate it, if you help this.
The text was updated successfully, but these errors were encountered: