mirror of
https://github.com/containers/podman.git
synced 2025-11-13 01:29:06 +08:00
Vendor in containers/common@main
Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
4
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
4
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@@ -406,6 +406,10 @@ type EngineConfig struct {
|
||||
// before sending kill signal.
|
||||
StopTimeout uint `toml:"stop_timeout,omitempty,omitzero"`
|
||||
|
||||
// ExitCommandDelay is the number of seconds to wait for the exit
|
||||
// command to be send to the API process on the server.
|
||||
ExitCommandDelay uint `toml:"exit_command_delay,omitempty,omitzero"`
|
||||
|
||||
// ImageCopyTmpDir is the default location for storing temporary
|
||||
// container image content, Can be overridden with the TMPDIR
|
||||
// environment variable. If you specify "storage", then the
|
||||
|
||||
5
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
5
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
@@ -515,6 +515,11 @@ default_sysctls = [
|
||||
#
|
||||
#stop_timeout = 10
|
||||
|
||||
# Number of seconds to wait before exit command in API process is given to.
|
||||
# This mimics Docker's exec cleanup behaviour, where the default is 5 minutes (value is in seconds).
|
||||
#
|
||||
#exit_command_delay = 300
|
||||
|
||||
# map of service destinations
|
||||
#
|
||||
#[service_destinations]
|
||||
|
||||
8
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
8
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
@@ -95,6 +95,10 @@ var (
|
||||
parseSubnetPool("10.96.0.0/11", 24),
|
||||
parseSubnetPool("10.128.0.0/9", 24),
|
||||
}
|
||||
// additionalHelperBinariesDir is an extra helper binaries directory that
|
||||
// should be set during link-time, if different packagers put their
|
||||
// helper binary in a different location
|
||||
additionalHelperBinariesDir string
|
||||
)
|
||||
|
||||
// nolint:unparam
|
||||
@@ -277,6 +281,9 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
|
||||
c.VolumePath = filepath.Join(storeOpts.GraphRoot, "volumes")
|
||||
|
||||
c.HelperBinariesDir = defaultHelperBinariesDir
|
||||
if additionalHelperBinariesDir != "" {
|
||||
c.HelperBinariesDir = append(c.HelperBinariesDir, additionalHelperBinariesDir)
|
||||
}
|
||||
c.HooksDir = DefaultHooksDirs
|
||||
c.ImageDefaultTransport = _defaultTransport
|
||||
c.StateType = BoltDBStateStore
|
||||
@@ -286,6 +293,7 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
|
||||
c.CgroupManager = defaultCgroupManager()
|
||||
c.ServiceTimeout = uint(5)
|
||||
c.StopTimeout = uint(10)
|
||||
c.ExitCommandDelay = uint(5 * 60)
|
||||
c.NetworkCmdOptions = []string{
|
||||
"enable_ipv6=true",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user