summaryrefslogtreecommitdiffstats
path: root/chroot/unsupported.go
blob: 677a0a2df70ea2e48d1512ce775c809dfd7dd904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//go:build !linux && !freebsd
// +build !linux,!freebsd

package chroot

import (
	"fmt"
	"io"

	"github.com/opencontainers/runtime-spec/specs-go"
)

// RunUsingChroot is not supported.
func RunUsingChroot(spec *specs.Spec, bundlePath, homeDir string, stdin io.Reader, stdout, stderr io.Writer) (err error) {
	return fmt.Errorf("--isolation chroot is not supported on this platform")
}