README.md: replace examples with kelsey's tutorial

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-12-16 12:43:40 +01:00
parent 60d148f94c
commit 2341ae4184
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
2 changed files with 412 additions and 68 deletions

View file

@ -86,74 +86,7 @@ make BUILDTAGS='seccomp apparmor'
### Running pods and containers
#### Start the server
```
# ocid --debug
```
If the default `--runtime` value does not point to your runtime:
```
# ocid --runtime $(which runc)
```
#### Create a pod
```
$ ocic pod run --config test/testdata/sandbox_config.json
```
#### Get pod status
```
# ocic pod status --id <pod_id>
```
#### Pull image from registry for container to run in a pod
```
# ocic image pull docker://redis:latest
```
#### Run a container inside a pod
```
# ocic ctr create --pod <pod_id> --config test/testdata/container_redis.json
```
#### Start a container
```
# ocic ctr start --id <ctr_id>
```
#### Get container status
```
# ocic ctr status --id <ctr_id>
```
#### Stop a container
```
# ocic ctr stop --id <ctr_id>
```
#### Remove a container
```
# ocic ctr remove --id <ctr_id>
```
#### Stop a pod
```
# ocic pod stop --id <pod_id>
```
#### Remove a pod
```
# ocic pod remove --id <pod_id>
```
#### List pods
```
# ocic pod list
```
#### List containers
```
# ocic ctr list
```
Follow this [tutorial](tutorial.md) to get started with CRI-O.
### Setup CNI networking