Questions tagged [runc]

For questions relating to the runC command-line tool.

Official page: https://runc.io/

63 questions
1
vote
2 answers

Cannot start an existing container with Podman

I am running Podman version 1.6.2 on Ubuntu 18.04. I am unable to start a container after stopping it. I run the container with: podman run -d -p 8081:8081 --name nexus -v /opt/nexus-data:/nexus-data sonatype/nexus3 And it starts up ok. If I…
cjt
  • 479
  • 1
  • 5
  • 9
1
vote
1 answer

Convert docker-compose.yml to runc config.json

I want to convert docker-compose.yml to (a set of) runc config.json. I found so far: copying config.json from running docker container (is unreliable) somehow using dockerd API to create config.json from Docker Image None of these handle parsing…
kutschkem
  • 7,826
  • 3
  • 21
  • 56
1
vote
2 answers

How docker allocate memory to the process in container?

Docker first initializes a container and then execute the program you want. I wonder how docker manages the memory address of container and the program in it.
Luba A
  • 81
  • 9
1
vote
3 answers

runc installation error in Slackware 14.2

I'm trying to install Docker in Slackware 14.2 via SBoTools, but I got an error message of runc installation. undefined reference to `seccomp_rule_add_exact_array' collect2: error: ld returned 1 exit status make: *** [all] Error 2 Makefile:30:…
Fernando
  • 31
  • 6
1
vote
2 answers

libcontainer, runc and nsenter bootstrap

I am fairly new to docker/containers, and am trying to better understand it by looking at the code. Looking at runC, it looks like it uses libcontainer much like nsinit in the old code base did, and I am trying to use it as a starting point to…
Shahed
  • 111
  • 9
1
vote
1 answer

Execute process in Runc container via Garden API

I have a Cloud Foundry Bosh Lite install with Garden/Runc support running on my local dev machine with an app hosted on it. I can ssh into the Diego cell VM and execute cell_z1/0# runc exec 5f9c8b67-9170-4c53-4bab-bbb2e6a3acdf…
Gordon
  • 312,688
  • 75
  • 539
  • 559
1
vote
1 answer

runc container start go-lang deattached mode

I'm testing runc container start time using an automatic go lang script my code is like below and it keep blocking the process even that it runs without blocking in shell. command := exec.Command("runc","start","-d","redis") command.Dir =…
0
votes
2 answers

Problems with RunC and math.h

Possible Duplicate: Including files in C I am using RunC to write a simple function which requires pow and floor/truncate. I included math.h. When I use the functions in the main, there is no problems. However, once I try to make a separate int…
0
votes
1 answer

containerd-shim-runc-v2 consumes my GPU RAM

Lately I added NVIDIA GPU card to an Ubuntu 22.04. The system keep crashing soon after the card's memory is fully consumed by uwsgi processes. When tracking the parent process for it, I see its because containerd-shim-runc-v2. root 2923 …
Tal
  • 391
  • 2
  • 11
0
votes
0 answers

My makefile give me redefiniton error for all headers

I have a makefile that content like this: ALL: Compile Execute Compile: gcc -I ./include/ -o ./lib/Uretim.o -c ./src/Uretim.c gcc -I ./include/ -o ./lib/AUretim.o -c ./src/AUretim.c gcc -I ./include/ -o ./lib/BUretim.o -c…
goOdyaga
  • 5
  • 2
0
votes
1 answer

How to copy files from host to container using ctr Containerd command only?

I'm trying to figure out how to copy files from host to a container I started using Containerd ctr command. Just for little bit of context: I've been using the image docker.io/bitnami/apache:latest for this exercise and as it is rootless, it makes…
0
votes
0 answers

How to run nginx in runc?

I decided to take on a journey of containerization and learn more how containers work under the hood to gain more confidence and become a more proficient programmer. I am trying to run a simple nginx container in runc but I am stuck. I looked at the…
jedi
  • 2,003
  • 5
  • 28
  • 66
0
votes
1 answer

How to run Wasm module with podman + crun?

I am trying to use podman to run a Wasm module as shown here, but I keep getting the error "Exec format error". I have a Wasm module named "hellor.wasm" which executes correctly using both wasmer and wasmtime. I am running podman on Rocky Linux…
Tony Iams
  • 21
  • 1
0
votes
1 answer

Linuxkit where is the container running

Linuxkit is very interesting project so started playing with it. I have created image using redis-os.yml example https://raw.githubusercontent.com/linuxkit/linuxkit/master/examples/redis-os.yml When i boot redis-os it works but i am not seeing any…
Satish
  • 16,544
  • 29
  • 93
  • 149
0
votes
1 answer

How to mount volume without using docker

In order to mount a directory to a container i used bind mounts https://docs.docker.com/storage/bind-mounts/ Now i'm trying to find a way to replace $docker run -v command.
Gioni
  • 1
  • 1