Skip to content

container stop operation also removed the container #35

@NoaKirsh

Description

@NoaKirsh

Hi,
Why does stop container operation also contain remove operation?

in https://github.com/openconfig/containerz/blob/master/containers/docker/container_stop.go:

if err := m.client.ContainerStop(ctx, instance, container.StopOptions{Timeout: pDuration}); err != nil {
   ...

if err := m.client.ContainerRemove(ctx, instance, container.RemoveOptions{
   ...

The container with the stopped status should still exist in the container list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions