Skip to content

Commit 1fffb3c

Browse files
committed
actually add container to attach commandline
1 parent 9a583a6 commit 1fffb3c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

userdocker/subcommands/attach.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def exec_cmd_attach(args):
3333
cmd += ['--detach-keys', args.detach_keys]
3434

3535
container = args.container
36+
cmd += [container]
37+
38+
# check if we're allowed to attach to container (if it's ours)
3639
container_env = exec_cmd(
3740
[
3841
args.executor_path, 'inspect',

0 commit comments

Comments
 (0)