Questions tagged [runc]

For questions relating to the runC command-line tool.

Official page: https://runc.io/

63 questions
0
votes
1 answer

How to properly run a container with containerd's ctr using --uidmap/gidmap and --net-host option

I'm running a container with ctr and next to using user namespaces to map the user within the container (root) to another user on the host, I want to make the host networking available for the container. For this, I'm using the --net-host option.…
Wolfson
  • 1,187
  • 17
  • 22
0
votes
1 answer

Are there any containers running without namespaces and cgroups?

Most container runtimes are based on namespaces and cgroups (docker, lxc, runc). I am wondering if there are on-the-market or open-source containers that are not based on these technologies ? Do you know some names ?
dada
  • 1,390
  • 2
  • 17
  • 40
0
votes
1 answer

runc container cpu usage

Where to look for cpu usage for a specific runc container? . There is no file present in /proc// ( is the pid obtained from runc list command) by any cpu related name which gives cpu usage for that specific container. In /sys/fs/cgroup…
user13145713
  • 109
  • 8
0
votes
1 answer

joined process cannot write ns_last_pid of the container

A process from a host joined a container's namepsace and is trying to write ns_last_pid file present in /proc/sys/kernel/ns_last_pid. but it is giving an error of Read only file system. whereas i'm able to do this on the host's ns_last_pid file via…
0
votes
0 answers

How to traverse through the pid namespace of a container?

I've to traverse through the process tree of the container launched in runc container environment. My goal is to walk the process tree when the container is paused and call clone method to specific pid of that process tree so that it creates a new…
user13145713
  • 109
  • 8
0
votes
1 answer

How to use LD_PRELOAD in container runc

I followed this link and tried to use runc to launch a busybox container. I wanted to load a shared library into the container process with the LD_PRELOAD trick. I modified the args in config.json "args": [ "sh" …
xiaogw
  • 653
  • 8
  • 18
0
votes
1 answer

CRIO runtime spec for OCI v1alpha1 compliance

devs, where can I find the spec for a cri-o runtime cmdline interface to be fully OCI v1alpha1 compliant? CRI-O supports any OCI compatible runtime. We test with runc and Clear Containers today. But while playing around with crictl I noticed that…
Ruben Jenster
  • 341
  • 1
  • 3
  • 7
0
votes
1 answer

Runtimes supported by containerd apart from runC?

Does containerd support any other runtimes apart from runC? Further, the containerd site says, "An industry-standard container runtime with an emphasis on simplicity, robustness and portability". Does this refer to any specific standard like the OCI…
samshers
  • 1
  • 6
  • 37
  • 84
0
votes
0 answers

Start a container without restricting its network access

Would there be a way to get runC to start a container without restricting its network access? After reading a little about cgroups I imagine it would be technically possible; but not sure how / if runC would expose this option (or perhaps some other…
brent
  • 1,095
  • 1
  • 11
  • 27
0
votes
1 answer

Running OCI Containers as regular users

For many development tools I find it useful to install them in a container and do builds and testing inside that. With a bit of wrapper script to assemble the rapidly growing command-line it is not too hard to run even GUI (X-windows) applications…
Jan Hudec
  • 73,652
  • 13
  • 125
  • 172
0
votes
1 answer

How to get into an App Container Manually with Garden-RunC Backend

So I have been trying this-tutorial to access the runC container from the diego-cell VM. However, when I try to run /var/vcap/packages/runc/bin/runc exec -t /bin/bash I get the error exec failed: container "" does not exist when…
Vipin Menon
  • 2,892
  • 4
  • 20
  • 35
0
votes
1 answer

Python subprocess.communicate fails to capture output from runc container if not run from interactive terminal

I have a script which runs a subprocess and captures the output, but it only works if I run it in an interactive shell, but not if run from Jenkins. tst_subscriber = ["timeout", "-s", "KILL", str(timeout),"bash","-c",…
kutschkem
  • 7,826
  • 3
  • 21
  • 56
0
votes
2 answers

Getting runc config.json from docker container

I am trying to create a runc container from a docker container. I followed this blog post and was successfull in extracting the config.json from the running docker container. The issue is that The path where I found the config.json was different…
kutschkem
  • 7,826
  • 3
  • 21
  • 56
0
votes
1 answer

Segmentation fault when executing binary in runc container

I'm having a particular issue with a runc container. I have a bash script (running as root) that's executing the following: $ setcap cap_net_bind_service=+ep ${PACKAGE_DIR}/bin/my-binary $ chpst -u vcap:vcap "${PACKAGE_DIR}/bin/my-binary" --config…
mango
  • 5,577
  • 4
  • 29
  • 41
0
votes
1 answer

How to backup and restore docker containers (without the original docker run command)

I want to be able to "freeze" a container state into a file and then restore it later if the container is accidentally deleted. This is to prevent accidental container deletion. I tried docker export to a tar file, then docker import, but it will…
ThiagoAlves
  • 1,313
  • 16
  • 25