e35b025aa6
Signed-off-by: John Howard <jhoward@microsoft.com>
18 lines
355 B
Go
18 lines
355 B
Go
// +build linux
|
|
|
|
package daemon
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/docker/docker/daemon/execdriver/lxc"
|
|
)
|
|
|
|
// checkExecSupport returns an error if the exec driver does not support exec,
|
|
// or nil if it is supported.
|
|
func checkExecSupport(drivername string) error {
|
|
if strings.HasPrefix(drivername, lxc.DriverName) {
|
|
return lxc.ErrExec
|
|
}
|
|
return nil
|
|
}
|