mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
0ef637722f
Refactor device handling code
107 lines
1.9 KiB
JSON
107 lines
1.9 KiB
JSON
{
|
|
"namespaces": {
|
|
"NEWNET": true,
|
|
"NEWPID": true,
|
|
"NEWIPC": true,
|
|
"NEWUTS": true,
|
|
"NEWNS": true
|
|
},
|
|
"networks": [
|
|
{
|
|
"gateway": "localhost",
|
|
"type": "loopback",
|
|
"address": "127.0.0.1/0",
|
|
"mtu": 1500
|
|
},
|
|
{
|
|
"gateway": "172.17.42.1",
|
|
"context": {
|
|
"prefix": "veth",
|
|
"bridge": "docker0"
|
|
},
|
|
"type": "veth",
|
|
"address": "172.17.42.2/16",
|
|
"mtu": 1500
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"gateway": "172.17.42.1",
|
|
"interface_name": "eth0"
|
|
},
|
|
{
|
|
"destination": "192.168.0.0/24",
|
|
"interface_name": "eth0"
|
|
}
|
|
],
|
|
"capabilities": [
|
|
"MKNOD"
|
|
],
|
|
"cgroups": {
|
|
"name": "docker-koye",
|
|
"parent": "docker"
|
|
},
|
|
"hostname": "koye",
|
|
"environment": [
|
|
"HOME=/",
|
|
"PATH=PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin",
|
|
"container=docker",
|
|
"TERM=xterm-256color"
|
|
],
|
|
"tty": true,
|
|
"mounts": [
|
|
{
|
|
"type": "devtmpfs"
|
|
}
|
|
],
|
|
"device_nodes": [
|
|
{
|
|
"path": "/dev/null",
|
|
"type": 99,
|
|
"major_number": 1,
|
|
"minor_number": 3,
|
|
"cgroup_permissions": "rwm",
|
|
"file_mode": 438
|
|
},
|
|
{
|
|
"path": "/dev/zero",
|
|
"type": 99,
|
|
"major_number": 1,
|
|
"minor_number": 5,
|
|
"cgroup_permissions": "rwm",
|
|
"file_mode": 438
|
|
},
|
|
{
|
|
"path": "/dev/full",
|
|
"type": 99,
|
|
"major_number": 1,
|
|
"minor_number": 7,
|
|
"cgroup_permissions": "rwm",
|
|
"file_mode": 438
|
|
},
|
|
{
|
|
"path": "/dev/tty",
|
|
"type": 99,
|
|
"major_number": 5,
|
|
"minor_number": 0,
|
|
"cgroup_permissions": "rwm",
|
|
"file_mode": 438
|
|
},
|
|
{
|
|
"path": "/dev/urandom",
|
|
"type": 99,
|
|
"major_number": 1,
|
|
"minor_number": 9,
|
|
"cgroup_permissions": "rwm",
|
|
"file_mode": 438
|
|
},
|
|
{
|
|
"path": "/dev/random",
|
|
"type": 99,
|
|
"major_number": 1,
|
|
"minor_number": 8,
|
|
"cgroup_permissions": "rwm",
|
|
"file_mode": 438
|
|
}
|
|
]
|
|
}
|