Make supervisor.go to compile without libcontainer.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
b823ce9149
commit
05f20c993d
3 changed files with 23 additions and 2 deletions
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")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue