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

runc run fails with "mkdir /run/runc: permission denied" #1413

Closed
jwendell opened this issue Apr 21, 2017 · 2 comments
Closed

runc run fails with "mkdir /run/runc: permission denied" #1413

jwendell opened this issue Apr 21, 2017 · 2 comments

Comments

@jwendell
Copy link
Contributor

I followed the instructions found on README.md:

  1. Create the filesystem: docker export $(docker create busybox) | tar -C rootfs -xvf -
  2. Create the config: runc spec
  3. Run the image: runc run mycontainerid

Got the error: mkdir /run/runc: permission denied

Am I missing something?

@jwendell
Copy link
Contributor Author

hmm, it seems runc must be executed as root. If that's the case, I think it's worth to mention it on README, right?

@cyphar
Copy link
Member

cyphar commented Apr 21, 2017

@jwendell It used to be the case that runc could only be run as root. Recently (#774) runc can now be run as an unprivileged user (runc used to output "you must run me as root" but since that is no longer true the errors are less obvious). Though you're right that the README probably should be cleaned up significantly (the shell examples aren't very pretty).

jwendell added a commit to jwendell/runc that referenced this issue Apr 21, 2017
jwendell added a commit to jwendell/runc that referenced this issue Apr 21, 2017
jwendell added a commit to jwendell/runc that referenced this issue Apr 22, 2017
Closes opencontainers#1413.

Signed-off-by: Jonh Wendell <jonh.wendell@redhat.com>
jwendell added a commit to jwendell/runc that referenced this issue Apr 22, 2017
Closes opencontainers#1413.

Signed-off-by: Jonh Wendell <jonh.wendell@redhat.com>
adrianreber pushed a commit to adrianreber/runc that referenced this issue Jul 27, 2017
Closes opencontainers#1413.

Signed-off-by: Jonh Wendell <jonh.wendell@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants