| skipped 19 lines |
20 | 20 | | "github.com/iximiuz/cdebug/pkg/tty" |
21 | 21 | | ) |
22 | 22 | | |
23 | | - | // cdebug exec [--image busybox] <CONT> [CMD] |
24 | | - | // cdebug exec [-it] --image nixery.dev/shell/ps <CONT> [CMD] |
25 | | - | |
26 | | - | // cdebug images |
27 | | - | // - busybox |
28 | | - | // - alpine |
29 | | - | // - nixery:shell/ps |
30 | | - | |
31 | 23 | | const ( |
32 | 24 | | defaultToolkitImage = "docker.io/library/busybox:latest" |
33 | 25 | | ) |
| skipped 64 lines |
98 | 90 | | &opts.autoRemove, |
99 | 91 | | "rm", |
100 | 92 | | false, |
101 | | - | "Automatically remove the container when it exits (as in `docker run --rm`)", |
| 93 | + | "Automatically remove the debugger container when it exits (as in `docker run --rm`)", |
102 | 94 | | ) |
103 | 95 | | |
104 | 96 | | return cmd |
| skipped 43 lines |
148 | 140 | | resp, err := client.ContainerCreate( |
149 | 141 | | ctx, |
150 | 142 | | &container.Config{ |
151 | | - | Image: opts.image, |
| 143 | + | Image: opts.image, |
| 144 | + | Entrypoint: []string{"sh"}, |
152 | 145 | | Cmd: []string{ |
153 | | - | "sh", |
154 | 146 | | "-c", |
155 | 147 | | mustRenderTemplate( |
156 | 148 | | chrootEntrypoint, |
| skipped 214 lines |