mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-27 03:08:04 +00:00
Merge pull request #8191 from vieux/improve_error_exec_lxc
Improve error for docker exec & LXC
This commit is contained in:
@@ -2,6 +2,7 @@ package lxc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@@ -27,6 +28,8 @@ import (
|
||||
|
||||
const DriverName = "lxc"
|
||||
|
||||
var ErrExec = errors.New("Unsupported: Exec is not supported by the lxc driver")
|
||||
|
||||
type driver struct {
|
||||
root string // root path for the driver to use
|
||||
initPath string
|
||||
@@ -534,5 +537,5 @@ func (t *TtyConsole) Close() error {
|
||||
}
|
||||
|
||||
func (d *driver) Exec(c *execdriver.Command, processConfig *execdriver.ProcessConfig, pipes *execdriver.Pipes, startCallback execdriver.StartCallback) (int, error) {
|
||||
return -1, fmt.Errorf("Unsupported: Exec is not supported by the lxc driver")
|
||||
return -1, ErrExec
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user