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…
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":…
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.
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…
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…
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…
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…
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…
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…
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:…
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 …
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…
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 {
…
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,…
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…