mirror of
https://github.com/containers/buildah.git
synced 2026-02-05 09:45:38 +01:00
Start using containers/common
We have moved share code from buildah, podman and others into containers/common. Specifically for this PR we are moving to use containers/common/pkg/unshare and containers/common/pkg/cgroups. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #2010 Approved by: QiWang19
This commit is contained in:
committed by
Atomic Bot
parent
c0388272b3
commit
8fc5b0116f
@@ -81,7 +81,7 @@ imageId, _, _, err := builder.Commit(context.TODO(), imageRef, buildah.CommitOpt
|
||||
|
||||
## Rootless mode
|
||||
|
||||
To enable rootless mode, import `github.com/containers/buildah/pkg/unshare` and add this code at the beginning of your main method:
|
||||
To enable rootless mode, import `github.com/containers/common/pkg/unshare` and add this code at the beginning of your main method:
|
||||
|
||||
```go
|
||||
if buildah.InitReexec() {
|
||||
@@ -101,7 +101,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/containers/buildah"
|
||||
"github.com/containers/buildah/pkg/unshare"
|
||||
"github.com/containers/common/pkg/unshare"
|
||||
"github.com/containers/image/v5/transports/alltransports"
|
||||
"github.com/containers/image/v5/types"
|
||||
"github.com/containers/storage"
|
||||
|
||||
Reference in New Issue
Block a user