mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 23:18:41 +00:00
moby: add a Devices array to the image yml
According to https://github.com/linuxkit/linuxkit/pull/3684#issuecomment-860128095
runc removed the console as a default device, so now it must be specified
explicitly in the OCI config.
See 60e21ec26e
The similar code in moby/moby is here: https://github.com/moby/moby/blob/master/oci/devices_linux.go
This patch allows packages to declare a `devices` array, which can contain `/dev/console` etc.
Signed-off-by: David Scott <dave@recoil.org>
This commit is contained in:
15
docs/yaml.md
15
docs/yaml.md
@@ -232,6 +232,21 @@ services:
|
||||
- CAP_DAC_OVERRIDE
|
||||
```
|
||||
|
||||
## `devices`
|
||||
|
||||
To access the console, it's necessary to explicitly add a "device" definition, for example:
|
||||
|
||||
```
|
||||
devices:
|
||||
- path: "/dev/console"
|
||||
type: c
|
||||
major: 5
|
||||
minor: 1
|
||||
mode: 0666
|
||||
```
|
||||
|
||||
See the [the getty package](../pkg/getty/build.yml) for a more complete example
|
||||
and see [runc](https://github.com/opencontainers/runc/commit/60e21ec26e15945259d4b1e790e8fd119ee86467) for context).
|
||||
|
||||
### Mount Options
|
||||
When mounting filesystem paths into a container - whether as part of `onboot` or `services` - there are several options of which you need to be aware. Using them properly is necessary for your containers to function properly.
|
||||
|
Reference in New Issue
Block a user