LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   runc won't start a container (https://www.linuxquestions.org/questions/linux-containers-122/runc-wont-start-a-container-4175613965/)

jr_bob_dobbs 09-17-2017 07:58 AM

runc won't start a container
 
Trying to get my head around containers and I'm trying to start simple, by using just runc.

There is a directory: /hsc/first_run. In it is a directory called rootfs, which contains an unzipped "image" of a small OS. I can do things like "chroot rootfs busybox sh" and get results. This indicates that the image is good.

According to my reading, the following should work, as root:
Code:

cd /hsc/first_run
runc spec
runc start makeupanameanynamejustpickoneandstickwithit

Nope. Every time:
Code:

container makeupanameanynamejustpickoneandstickwithit does not exist
one or more of container start failed

I tried using the directory name "rootfs" instead of "makeupanameanynamejustpickoneandstickwithit" but that does not work either. I looked inside the config.json file for a container name. Could not find anything.

What am I missing? What crucial thing is overlooked in all man pages, web pages and tutorials that I need to know?

Thank you.


All times are GMT -5. The time now is 12:12 PM.