File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ You can also run specific test cases by:
6565
6666### Using:
6767
68- To run a container with the id "test", execute ` runc start ` with the containers id as arg one
68+ To run a container with the id "test", execute ` runc run ` with the containers id as arg one
6969in the bundle's root directory:
7070
7171``` bash
72- runc start test
72+ runc run test
7373/ $ ps
7474PID USER COMMAND
75751 daemon sh
@@ -96,9 +96,9 @@ mkdir rootfs
9696docker export $(docker create busybox) | tar -C rootfs -xvf -
9797```
9898* Create ` config.json ` by using ` runc spec ` .
99- * Execute ` runc start ` and you should be placed into a shell where you can run ` ps ` :
99+ * Execute ` runc run ` and you should be placed into a shell where you can run ` ps ` :
100100```
101- $ runc start test
101+ $ runc run test
102102/ # ps
103103PID USER COMMAND
104104 1 root sh
@@ -120,7 +120,7 @@ After=network.target
120120[Service]
121121CPUQuota=200%
122122MemoryLimit=1536M
123- ExecStart=/usr/local/sbin/runc start minecraft
123+ ExecStart=/usr/local/sbin/runc run minecraft
124124Restart=on-failure
125125WorkingDirectory=/containers/minecraftbuild
126126
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ The root filesystem contains the contents of the container.
3737
3838To start a new instance of a container:
3939
40- # runc start [ -b bundle ] <container-id>
40+ # runc run [ -b bundle ] <container-id>
4141
4242Where "<container-id>" is your name for the instance of the container that you
4343are starting. The name you provide for the container instance must be unique on
Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ command in a new hello-world container named container1:
4242 tar -C rootfs -xf hello-world.tar
4343 runc spec
4444 sed -i 's;"sh";"/hello";' ` + specConfig + `
45- runc start container1
45+ runc run container1
4646
47- In the start command above, "container1" is the name for the instance of the
47+ In the run command above, "container1" is the name for the instance of the
4848container that you are starting. The name you provide for the container instance
4949must be unique on your host.
5050
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ function teardown() {
7171}
7272
7373@test " this is a simple test" {
74- runc start containerid
75- # "run " automatically populates $status, $output and $lines.
74+ runc run containerid
75+ # "The runc macro " automatically populates $status, $output and $lines.
7676 # Please refer to bats documentation to find out more.
7777 [ " $status " -eq 0 ]
7878
You can’t perform that action at this time.
0 commit comments