mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
Merge pull request #3049 from giuseppe/drop-unuseful-check
container: drop rootless check
This commit is contained in:
commit
7d05ff3fc7
|
@ -299,7 +299,7 @@ func (c *Container) setupStorage(ctx context.Context) error {
|
|||
return errors.Wrapf(err, "error creating container storage")
|
||||
}
|
||||
|
||||
if !rootless.IsRootless() && (len(c.config.IDMappings.UIDMap) != 0 || len(c.config.IDMappings.GIDMap) != 0) {
|
||||
if len(c.config.IDMappings.UIDMap) != 0 || len(c.config.IDMappings.GIDMap) != 0 {
|
||||
if err := os.Chown(containerInfo.RunDir, c.RootUID(), c.RootGID()); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue