From 0307c88ee98fb282c02434d467d148752e6c4d49 Mon Sep 17 00:00:00 2001 From: rajasec Date: Fri, 3 Jun 2016 11:23:59 +0530 Subject: [PATCH] Updating README for starting the container Signed-off-by: rajasec Updating README for starting the container Signed-off-by: rajasec Updating README files for container start Signed-off-by: rajasec updating README files for container start Signed-off-by: rajasec --- README.md | 10 +++++----- main.go | 2 +- spec.go | 4 ++-- tests/integration/README.md | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e63539f5..b54346ce 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,11 @@ You can also run specific test cases by: ### Using: -To run a container with the id "test", execute `runc start` with the containers id as arg one +To run a container with the id "test", execute `runc run` with the containers id as arg one in the bundle's root directory: ```bash -runc start test +runc run test / $ ps PID USER COMMAND 1 daemon sh @@ -96,9 +96,9 @@ mkdir rootfs docker export $(docker create busybox) | tar -C rootfs -xvf - ``` * Create `config.json` by using `runc spec`. -* Execute `runc start` and you should be placed into a shell where you can run `ps`: +* Execute `runc run` and you should be placed into a shell where you can run `ps`: ``` -$ runc start test +$ runc run test / # ps PID USER COMMAND 1 root sh @@ -120,7 +120,7 @@ After=network.target [Service] CPUQuota=200% MemoryLimit=1536M -ExecStart=/usr/local/sbin/runc start minecraft +ExecStart=/usr/local/sbin/runc run minecraft Restart=on-failure WorkingDirectory=/containers/minecraftbuild diff --git a/main.go b/main.go index f7a0243f..550d1976 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,7 @@ The root filesystem contains the contents of the container. To start a new instance of a container: - # runc start [ -b bundle ] + # runc run [ -b bundle ] Where "" is your name for the instance of the container that you are starting. The name you provide for the container instance must be unique on diff --git a/spec.go b/spec.go index b140e7c2..ffc3e7ce 100644 --- a/spec.go +++ b/spec.go @@ -42,9 +42,9 @@ command in a new hello-world container named container1: tar -C rootfs -xf hello-world.tar runc spec sed -i 's;"sh";"/hello";' ` + specConfig + ` - runc start container1 + runc run container1 -In the start command above, "container1" is the name for the instance of the +In the run command above, "container1" is the name for the instance of the container that you are starting. The name you provide for the container instance must be unique on your host. diff --git a/tests/integration/README.md b/tests/integration/README.md index baf81b21..c58788af 100644 --- a/tests/integration/README.md +++ b/tests/integration/README.md @@ -71,8 +71,8 @@ function teardown() { } @test "this is a simple test" { - runc start containerid - # "run" automatically populates $status, $output and $lines. + runc run containerid + # "The runc macro" automatically populates $status, $output and $lines. # Please refer to bats documentation to find out more. [ "$status" -eq 0 ]