From df48f4eb206c0b8806f4eaa8256e99f2c1f3cd4d Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Wed, 13 May 2020 10:50:36 +0200 Subject: [PATCH] Implement `Delete` for moby Signed-off-by: Ulysses Souza --- moby/backend.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/moby/backend.go b/moby/backend.go index d22c50863..527e870e5 100644 --- a/moby/backend.go +++ b/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, + }) +}