Skip to content

Commit

Permalink
Updating README for starting the container
Browse files Browse the repository at this point in the history
Signed-off-by: rajasec <rajasec79@gmail.com>

Updating README for starting the container

Signed-off-by: rajasec <rajasec79@gmail.com>

Updating README files for container start

Signed-off-by: rajasec <rajasec79@gmail.com>

updating README files for container start

Signed-off-by: rajasec <rajasec79@gmail.com>
  • Loading branch information
rajasec committed Jun 5, 2016
1 parent afaa21f commit 0307c88
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -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 ] <container-id>
# runc run [ -b bundle ] <container-id>
Where "<container-id>" 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
Expand Down
4 changes: 2 additions & 2 deletions spec.go
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/README.md
Expand Up @@ -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 ]

Expand Down

0 comments on commit 0307c88

Please sign in to comment.