mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-15 02:37:27 +08:00
parent
6c651abfae
commit
440ba09061
@ -166,7 +166,7 @@ func DeleteNetwork(id string) error {
|
|||||||
|
|
||||||
func CreateAttachConnection(id string, ctx context.Context) (*types.HijackedResponse, error) {
|
func CreateAttachConnection(id string, ctx context.Context) (*types.HijackedResponse, error) {
|
||||||
|
|
||||||
conf := types.ContainerAttachOptions{true, true, true, true, "ctrl-x,ctrl-x", true}
|
conf := types.ContainerAttachOptions{true, true, true, true, "ctrl-^,ctrl-^", true}
|
||||||
conn, err := c.ContainerAttach(ctx, id, conf)
|
conn, err := c.ContainerAttach(ctx, id, conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user