Skip to content

container stop operation also removed the container #35

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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