Skip to content

Commit ab10b60

Browse files
committed
Merge pull request #877 from rajasec/readme-update
Updating README for starting the container
2 parents 8e22b1d + 0307c88 commit ab10b60

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
6969
in the bundle's root directory:
7070

7171
```bash
72-
runc start test
72+
runc run test
7373
/ $ ps
7474
PID USER COMMAND
7575
1 daemon sh
@@ -96,9 +96,9 @@ mkdir rootfs
9696
docker 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
103103
PID USER COMMAND
104104
1 root sh
@@ -120,7 +120,7 @@ After=network.target
120120
[Service]
121121
CPUQuota=200%
122122
MemoryLimit=1536M
123-
ExecStart=/usr/local/sbin/runc start minecraft
123+
ExecStart=/usr/local/sbin/runc run minecraft
124124
Restart=on-failure
125125
WorkingDirectory=/containers/minecraftbuild
126126

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The root filesystem contains the contents of the container.
3737
3838
To start a new instance of a container:
3939
40-
# runc start [ -b bundle ] <container-id>
40+
# runc run [ -b bundle ] <container-id>
4141
4242
Where "<container-id>" is your name for the instance of the container that you
4343
are starting. The name you provide for the container instance must be unique on

spec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
4848
container that you are starting. The name you provide for the container instance
4949
must be unique on your host.
5050

tests/integration/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)