mirror of
https://github.com/containers/podman.git
synced 2025-11-14 10:09:20 +08:00
Update vendor of containers/buildah
Changes since 2022-05-31: - add --omit-history option (buildah PR 4028) Signed-off-by: Ed Santiago <santiago@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
14
vendor/github.com/containers/buildah/run_unix.go
generated
vendored
14
vendor/github.com/containers/buildah/run_unix.go
generated
vendored
@@ -5,6 +5,7 @@ package buildah
|
||||
import (
|
||||
"github.com/containers/buildah/define"
|
||||
nettypes "github.com/containers/common/libnetwork/types"
|
||||
"github.com/opencontainers/runtime-spec/specs-go"
|
||||
"github.com/containers/storage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
@@ -22,10 +23,19 @@ func (b *Builder) Run(command []string, options RunOptions) error {
|
||||
return errors.New("function not supported on non-linux systems")
|
||||
}
|
||||
func DefaultNamespaceOptions() (NamespaceOptions, error) {
|
||||
return NamespaceOptions{}, errors.New("function not supported on non-linux systems")
|
||||
options := NamespaceOptions{
|
||||
{Name: string(specs.CgroupNamespace), Host: false},
|
||||
{Name: string(specs.IPCNamespace), Host: false},
|
||||
{Name: string(specs.MountNamespace), Host: false},
|
||||
{Name: string(specs.NetworkNamespace), Host: false},
|
||||
{Name: string(specs.PIDNamespace), Host: false},
|
||||
{Name: string(specs.UserNamespace), Host: false},
|
||||
{Name: string(specs.UTSNamespace), Host: false},
|
||||
}
|
||||
return options, nil
|
||||
}
|
||||
|
||||
// getNetworkInterface creates the network interface
|
||||
func getNetworkInterface(store storage.Store, cniConfDir, cniPluginPath string) (nettypes.ContainerNetwork, error) {
|
||||
return nil, errors.New("function not supported on non-linux systems")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user