README changes for the newer spec format.
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
fd6564b8e4
commit
b3eaad364f
38
README.md
38
README.md
|
@ -23,7 +23,7 @@ sudo make install
|
|||
### Using:
|
||||
|
||||
To run a container that you received just execute `runc` with the JSON format as the argument or have a
|
||||
`container.json` file in the current working directory.
|
||||
`config.json` file in the current working directory.
|
||||
|
||||
```bash
|
||||
runc
|
||||
|
@ -36,7 +36,7 @@ PID USER COMMAND
|
|||
|
||||
### OCF Container JSON Format:
|
||||
|
||||
Below is a sample `container.json` configuration file. It assumes that
|
||||
Below is a sample `config.json` configuration file. It assumes that
|
||||
the file-system is found in a directory called `rootfs` and there is a
|
||||
user named `daemon` defined within that file-system.
|
||||
|
||||
|
@ -101,8 +101,40 @@ user named `daemon` defined within that file-system.
|
|||
"destination": "/sys",
|
||||
"options": "nosuid,noexec,nodev"
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"namespaces": [
|
||||
{
|
||||
"type": "process"
|
||||
},
|
||||
{
|
||||
"type": "network"
|
||||
},
|
||||
{
|
||||
"type": "mount"
|
||||
},
|
||||
{
|
||||
"type": "ipc"
|
||||
},
|
||||
{
|
||||
"type": "uts"
|
||||
}
|
||||
],
|
||||
"capabilities": [
|
||||
"AUDIT_WRITE",
|
||||
"KILL",
|
||||
"NET_BIND_SERVICE"
|
||||
],
|
||||
"devices": [
|
||||
"null",
|
||||
"random",
|
||||
"full",
|
||||
"tty",
|
||||
"zero",
|
||||
"urandom"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Examples:
|
||||
|
@ -118,7 +150,7 @@ To test using Docker's `busybox` image follow these steps:
|
|||
mkdir rootfs
|
||||
tar -C rootfs -xf busybox.tar
|
||||
```
|
||||
* Create a file called `container.json` using the example from above.
|
||||
* Create a file called `config.json` using the example from above.
|
||||
Modify the `user` property to be `root`.
|
||||
* Execute `runc` and you should be placed into a shell where you can run `ps`:
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue