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