Files
podman/libpod/container_inspect_freebsd.go
Paul Holzinger bad25da92e libpod: add !remote tag
This should never be pulled into the remote client.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-24 12:11:34 +02:00

21 lines
547 B
Go

//go:build !remote
// +build !remote
package libpod
import (
"github.com/containers/podman/v4/libpod/define"
spec "github.com/opencontainers/runtime-spec/specs-go"
)
func (c *Container) platformInspectContainerHostConfig(ctrSpec *spec.Spec, hostConfig *define.InspectContainerHostConfig) error {
// Not sure what to put here. FreeBSD jails use pids from the
// global pool but can only see their own pids.
hostConfig.PidMode = "host"
// UTS namespace mode
hostConfig.UTSMode = c.NamespaceMode(spec.UTSNamespace, ctrSpec)
return nil
}