(ctx context.Context, container string)
| 200 | } |
| 201 | |
| 202 | func (d Docker) Restart(ctx context.Context, container string) error { |
| 203 | _ = d.Stop(ctx, container) |
| 204 | return d.Start(ctx, container) |
| 205 | } |
| 206 | |
| 207 | func (d Docker) IsRun(ctx context.Context, container string) bool { |
| 208 | stat, err := d.client.ContainerInspect(ctx, container) |