mirror of
https://github.com/docker/cli.git
synced 2026-09-27 17:56:04 -04:00
Fixes #10388
The cmd.Lookup should be "-attach" and not "attach", as seen in docker/docker/runconfig/parse.go Signed-off-by: André Martins <martins@noironetworks.com> Upstream-commit: af90fe6a633be3a5bff4d20b0a59b9189a171176 Component: engine
This commit is contained in:
@@ -2227,7 +2227,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
if fl := cmd.Lookup("attach"); fl != nil {
|
||||
if fl := cmd.Lookup("-attach"); fl != nil {
|
||||
flAttach = fl.Value.(*opts.ListOpts)
|
||||
if flAttach.Len() != 0 {
|
||||
return ErrConflictAttachDetach
|
||||
|
||||
Reference in New Issue
Block a user