Skip to content

Container status wrt reboots and hooks #958

@alban

Description

@alban

The spec defines 4 statuses:

  • creating
  • created
  • running
  • stopped

What's happening when a container is created and then the machine is rebooted? Should the container be deleted, or should it be in the "stopped" state?

The spec also defines hooks and each hook receives the state of the container from stdin. What should be the status of the container in each hook?

  • prestart hook: I guess the state should be "created"
  • poststart hook: I guess the state should be "running"
  • poststop: since the hook is called after the container is deleted, the state is not "stopped" anymore but maybe some fantoom "deleted" state?

Could the spec clarify those two points?

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