diff options
author | jhowardmsft <jhoward@microsoft.com> | 2015-04-24 11:12:56 -0700 |
---|---|---|
committer | John Howard <jhoward@microsoft.com> | 2015-05-06 16:19:27 -0700 |
commit | e35b025aa61e7d8db04a9973967b7109f742593a (patch) | |
tree | 28710512ee18f630a4e5606199a8594c1c26ab9c /daemon/exec_linux.go | |
parent | 56c991781564e8cc292166d3b3e27e304c240468 (diff) | |
download | docker-e35b025aa61e7d8db04a9973967b7109f742593a.tar.gz |
Windows: Split ContainerExecCreate
Signed-off-by: John Howard <jhoward@microsoft.com>
Diffstat (limited to 'daemon/exec_linux.go')
-rw-r--r-- | daemon/exec_linux.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/daemon/exec_linux.go b/daemon/exec_linux.go new file mode 100644 index 0000000000..a360326327 --- /dev/null +++ b/daemon/exec_linux.go @@ -0,0 +1,18 @@ +// +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 +} |