(ctx context.Context, container string)
| 155 | } |
| 156 | |
| 157 | func (d Docker) Stop(ctx context.Context, container string) error { |
| 158 | timeout := time.Second * 5 |
| 159 | err := d.client.ContainerStop(ctx, container, &timeout) |
| 160 | return err |
| 161 | } |
| 162 | |
| 163 | func (d Docker) Rm(ctx context.Context, container string, force bool) error { |
| 164 | err := d.client.ContainerRemove(ctx, container, types.ContainerRemoveOptions{Force: force}) |