Skip to content

Commit

Permalink
chore: add attachToContainer methods to connect to the tty of the con…
Browse files Browse the repository at this point in the history
…tainer (#3871)

* chore: add attachToContainer methods

allow to attach to a container
also get stream when starting a container that is interactive+tty

related to #970

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Sep 18, 2023
1 parent 02a8433 commit efe2ce7
Show file tree
Hide file tree
Showing 5 changed files with 664 additions and 6 deletions.
6 changes: 6 additions & 0 deletions packages/main/src/plugin/api/container-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ export interface ContainerCreateOptions {
Tty?: boolean;
Cmd?: string[];
Entrypoint?: string | string[];
AttachStdin?: boolean;
AttachStdout?: boolean;
AttachStderr?: boolean;
OpenStdin?: boolean;
StdinOnce?: boolean;
Detach?: boolean;
}

export interface VolumeCreateOptions {
Expand Down

0 comments on commit efe2ce7

Please sign in to comment.