Versions in this module Expand all Collapse all v1 v1.8.0 Apr 26, 2019 Changes in this version + func GetHostIDMappings(pid string) ([]specs.LinuxIDMapping, []specs.LinuxIDMapping, error) + func GetSubIDMappings(user, group string) ([]specs.LinuxIDMapping, []specs.LinuxIDMapping, error) — linux/amd64 + func ParseIDMappings(uidmap, gidmap []string) ([]idtools.IDMap, []idtools.IDMap, error) v1.7.3 Apr 17, 2019 Changes in this version + const UsernsEnvName + func ExecRunnable(cmd Runnable) — linux/amd64 + func GetRootlessUID() int + func IsRootless() bool + func MaybeReexecUsingUserNamespace(evenForRoot bool) + func RootlessEnv() []string + type Cmd struct — linux/amd64 + Ctty *os.File + GidMappings []specs.LinuxIDMapping + GidMappingsEnableSetgroups bool + Hook func(pid int) error + OOMScoreAdj *int + Setpgrp bool + Setsid bool + UidMappings []specs.LinuxIDMapping + UnshareFlags int + UseNewgidmap bool + UseNewuidmap bool + func Command(args ...string) *Cmd + func (c *Cmd) CombinedOutput() ([]byte, error) + func (c *Cmd) Output() ([]byte, error) + func (c *Cmd) Run() error + func (c *Cmd) Start() error + type Runnable interface — linux/amd64 + Run func() error