Questions tagged [runc]

For questions relating to the runC command-line tool.

Official page: https://runc.io/

63 questions
2
votes
1 answer

Garbage output on raspberry pi3 B/B+ when running and OCI container

I am running simple docker busybox container (converted to an OCI bundle) using docker-runC (https://github.com/opencontainers/runtime-spec) on a raspberry pi3, connected to a host via a UART terminal. The connection is done through pins 6-8-10 on…
2
votes
0 answers

Bind mount /proc or /dev in container got operation not permitted error

I'm trying to bind mount /proc or /dev from host to linux container on ubuntu 16.04, but got operation not permitted error. I am using runc as my container runtime, and here is the mount section in runc config.json. { "destination":…
Alex
  • 247
  • 3
  • 12
2
votes
0 answers

Runc Containerd Check pointing support

I found this docker tool that used runc natively. Containerd I have three Questions: How it Work (How it checkpoints the container)? How to use it for live migration? What it the functional call sequence that its implemented.
2
votes
1 answer

Cmt migration tool validation error

I am using cmt (https://github.com/marcosnils/cmt) for container migration and I have problem in the validation. # cmt validate --src `pwd` --dst walid@192.168.1.12 2016/01/11 17:31:53 Error criu does not exist in dst I am sure both have the…
Walid Hanafy
  • 1,429
  • 2
  • 14
  • 26
2
votes
3 answers

Does the OCF spec mean that Docker is no longer Linux centric?

When I first heard that Microsoft was working to run docker containers it didn't make sense. For a while it seemed that Docker was Linux-centric, with its dependency on Linux Containers. Now it seems Docker has switched from LXC to an…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
1
vote
2 answers

Docker image looses user file permissions if running on another machine

Seems like I've found an interesting bug. I build several images with custom (non-root) user inside them. When I use these images in the host I made them it works okay. But when I pull them to another hosts and run, the user files switches their…
Demetry Pascal
  • 383
  • 4
  • 15
1
vote
1 answer

Libcontainer: What happens after the invocation of /proc/self/exe init

I'm trying to understand how runc works and stuck here: When the container is about to be started (using "runc run ") and in the init phase, can anybody help me understand where does the code logic go after command /proc/self/exe init gets…
1
vote
1 answer

runc: how to start stopped container

I am playing with raw containers. And I do not see a way to rerun a container that is currently stopped. # runc run nginx --detach # runc kill nginx as the result I have got the stopped container. How to run it again without delete? This does not…
geeknet
  • 57
  • 7
1
vote
0 answers

How to enable runc logs when running with containerd or docker

Looking at the runc code, it looks it uses logrus to write its logs when --debug flag is enabled. I am using runc through docker and containerd. I was wondering how I can enable/view these runc logs in such a scenario or if I can set this --debug…
systolicDrake
  • 101
  • 1
  • 6
1
vote
1 answer

How to dump the stack trace of runc

I am debugging a container issue where runc gets stuck. I wanted to know how to dump the stack trace of runc to understand where it is getting stuck. It seems to be possible based on this response:…
systolicDrake
  • 101
  • 1
  • 6
1
vote
1 answer

What's the relationship between docker and runc?

I find some info that says dockerd creates containers via runc. However, those containers created by the docker cannot be managed by runc. While the containers created by the podman can be managed by the runc directly. FYI Docker: F UID PID …
Mystic
  • 310
  • 4
  • 14
1
vote
1 answer

how to connection to containerd on windows using sdk?

I have some example from doc : https://containerd.io/docs/getting-started/ ... func redisExample() error { client, err := containerd.New("/run/containerd/containerd.sock") if err != nil { ... Right now, I'm working on windows, also I found…
1
vote
0 answers

How to get more information for an error generated in libcontainer/rootfs_linux.go?

Code used from github: https://github.com/opencontainers/runc/blob/master/libcontainer/rootfs_linux.go#L59 This is the if block to debug for our interest.... if err := mountToRootfs(m, config.Rootfs, config.MountLabel, hasCgroupns); err != nil { …
1
vote
1 answer

How does OCI/runc system path constraining work to prevent remounting such paths?

The background of my question is a set of test cases for my Linux-kernel Namespaces discovery Go package lxkns where I create a new child user namespace as well as a new child PID namespace inside a test container. I then need to remount /proc,…
TheDiveO
  • 2,183
  • 2
  • 19
  • 38
1
vote
2 answers

"make: go: command not found" - although go binary is in $PATH

I want to build runC on a Raspbian GNU/Linux 10 (buster), Linux 4.19.97-v7+. I downloaded the go1.15.6 ARMv6 version, extracted it to /usr/local and updated $PATH & $GOPATH. go version returns go version go1.15.6 linux/arm and echo…
Andrenergy
  • 25
  • 1
  • 4