-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attach with "docker attach", not "docker exec -it" #363
Comments
We open a new instance of the shell for most operations. If that is what you want to change, we can log it under another issue. |
No. This can remain this way.
What I need to change is the command executed. Where it is docker exec -it.
I would like to be docker attach.
Opening a new terminal is essential, but I need to attach using another
command.
Maybe a way to adjust the command executed on attach would be a great
solution.
This is a viable feature?
Em qui, 9 de ago de 2018 18:44, Prashanth <[email protected]>
escreveu:
… We open a new instance of the shell for most operations.
For example, here
<https://github.com/Microsoft/vscode-docker/blob/8aabff1c07d49031361611d8ab7884a33c437e4d/commands/build-image.ts#L108>
.
If that is what you want to change, we can log it under another issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABH3ig0_YUBr2BbmZeeNpkkZYKzH6RgJks5uPK1IgaJpZM4V0SEr>
.
|
Would it be useful to have a separate menu item for both, or do you only want one or the other? |
For me, Just one is ok.
But there could be the two options.
Something like "container attach" and "container execute interactive".
Then would keep what you call today an attach that is executing something
with an interactive tty AND would have the real attach that just open the
terminal on main tty.
Em qui, 9 de ago de 2018 23:28, Stephen Weatherford (MSFT) <
[email protected]> escreveu:
… Would it be useful to have a separate menu item for both, or do you only
want one or the other?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABH3itZshEA6tSqCQR0kmcbnmVl66yMXks5uPO_KgaJpZM4V0SEr>
.
|
Decision: provide both, something along these lines: |
This will be possible as a user setting with #1596. Nevertheless we should investigate changing the default. |
Thinking about this; changing the default is probably not a good idea. Given that the attach command can be customized, I'll close this. Command customization is the right option for those who want to use |
There is a big difference between "injecting a shell into a running container" vs "attaching to stdin/stdout/stderr of the container's PID 1 process". I think we made the right choice exposing the former. If a lot of users ask for the latter, it should be a separate command. |
To use binding.pry on Ruby on Rails, I need to access the same console that is already running.
Then, could be added a way to use the command
docker attach containerid
instead of thedocker exec -it
that opens another instance of the shell?A setting to use it would solve my problem.
The text was updated successfully, but these errors were encountered: