exec_linux.go 355 B

123456789101112131415161718
  1. // +build linux
  2. package daemon
  3. import (
  4. "strings"
  5. "github.com/docker/docker/daemon/execdriver/lxc"
  6. )
  7. // checkExecSupport returns an error if the exec driver does not support exec,
  8. // or nil if it is supported.
  9. func checkExecSupport(drivername string) error {
  10. if strings.HasPrefix(drivername, lxc.DriverName) {
  11. return lxc.ErrExec
  12. }
  13. return nil
  14. }