mirror of
https://github.com/containers/podman.git
synced 2025-11-04 00:50:15 +08:00
vendor containers/common@main
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
11
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
11
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@ -158,6 +158,13 @@ type ContainersConfig struct {
|
||||
// PidNS indicates how to create a pid namespace for the container
|
||||
PidNS string `toml:"pidns,omitempty"`
|
||||
|
||||
// Copy the content from the underlying image into the newly created
|
||||
// volume when the container is created instead of when it is started.
|
||||
// If false, the container engine will not copy the content until
|
||||
// the container is started. Setting it to true may have negative
|
||||
// performance implications.
|
||||
PrepareVolumeOnCreate bool `toml:"prepare_volume_on_create,omitempty"`
|
||||
|
||||
// RootlessNetworking depicts the "kind" of networking for rootless
|
||||
// containers. Valid options are `slirp4netns` and `cni`. Default is
|
||||
// `slirp4netns`
|
||||
@ -384,6 +391,10 @@ type EngineConfig struct {
|
||||
// will refer to the plugin as) mapped to a path, which must point to a
|
||||
// Unix socket that conforms to the Volume Plugin specification.
|
||||
VolumePlugins map[string]string `toml:"volume_plugins,omitempty"`
|
||||
|
||||
// ChownCopiedFiles tells the container engine whether to chown files copied
|
||||
// into a container to the container's primary uid/gid.
|
||||
ChownCopiedFiles bool `toml:"chown_copied_files"`
|
||||
}
|
||||
|
||||
// SetOptions contains a subset of options in a Config. It's used to indicate if
|
||||
|
||||
7
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
7
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
@ -189,6 +189,13 @@ default_sysctls = [
|
||||
#
|
||||
# pids_limit = 2048
|
||||
|
||||
# Copy the content from the underlying image into the newly created volume
|
||||
# when the container is created instead of when it is started. If false,
|
||||
# the container engine will not copy the content until the container is started.
|
||||
# Setting it to true may have negative performance implications.
|
||||
#
|
||||
# prepare_volume_on_create = false
|
||||
|
||||
# Indicates the networking to be used for rootless containers
|
||||
# rootless_networking = "slirp4netns"
|
||||
|
||||
|
||||
2
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
2
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
@ -340,6 +340,8 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
|
||||
c.LockType = "shm"
|
||||
c.MachineEnabled = false
|
||||
|
||||
c.ChownCopiedFiles = true
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user