Skip to content

Commit

Permalink
fix(stapel): add log line about starting container cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Oct 31, 2022
1 parent e138887 commit e8fd1f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/container_backend/docker_running_containers.go
Expand Up @@ -48,6 +48,8 @@ func TerminateRunningDockerContainers() error {
defer mu.Unlock()

for _, container := range runningDockerContainers {
logboek.Context(container.Ctx).Info().LogF("Removing container %q...\n", container.Name)

err := docker.ContainerRemove(container.Ctx, container.Name, types.ContainerRemoveOptions{RemoveVolumes: true, Force: true})
if err != nil {
logboek.Context(container.Ctx).Error().LogF("WARNING: Unable to remove container %q: %w\n", container.Name, err.Error())
Expand Down

0 comments on commit e8fd1f4

Please sign in to comment.