Documentation
¶
Overview ¶
Package config loads drun presets from the embedded defaults and an optional user override at $XDG_CONFIG_HOME/drun/presets.yaml (falling back to ~/.config/drun/presets.yaml). User presets fully replace shipped ones with the same name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Preset ¶
type Preset struct {
Image string `yaml:"image"`
Layer map[string][]string `yaml:"x-drun-layer,omitempty"`
Home string `yaml:"x-drun-home,omitempty"`
Mounts []string `yaml:"volumes,omitempty"`
Env map[string]string `yaml:"environment,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Entrypoint string `yaml:"entrypoint,omitempty"`
Command []string `yaml:"command,omitempty"`
User string `yaml:"user,omitempty"`
}
Preset describes how to run a container.
Click to show internal directories.
Click to hide internal directories.