Make supervisor.go to compile without libcontainer.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
13
supervisor_unsupported.go
Normal file
13
supervisor_unsupported.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build !libcontainer
|
||||
|
||||
package containerd
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/docker/containerd/runtime"
|
||||
)
|
||||
|
||||
func newRuntime(stateDir string) (runtime.Runtime, error) {
|
||||
return nil, errors.New("Unsupported runtime")
|
||||
}
|
Reference in New Issue
Block a user