1
0
Эх сурвалжийг харах

Implement `Delete` for moby

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza 5 жил өмнө
parent
commit
df48f4eb20
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 6 0
      moby/backend.go

+ 6 - 0
moby/backend.go

@@ -125,3 +125,9 @@ func (ms *mobyService) Logs(ctx context.Context, containerName string, request c
 	_, err = io.Copy(request.Writer, r)
 	return err
 }
+
+func (ms *mobyService) Delete(ctx context.Context, containerID string, force bool) error {
+	return ms.apiClient.ContainerRemove(ctx, containerID, types.ContainerRemoveOptions{
+		Force: force,
+	})
+}