Skip to content

An interrupted service restart may leave services in the exited state #2257

@pipex

Description

@pipex

A service restart via the supervisor API endpoints

performs the following actions

  1. stop the container
  2. remove the container
  3. create the container with the same configuration as before
  4. start the newly created container

Because of the changes in #1926 if the supervisor gets stopped between steps 1 and 2, on restart, the service won't get restarted by the supervisor when applying the target state, and it won't be started by the engine since a stop request already took place

This might be solved by combining steps 1 and 2 by doing a remove with force: true when killing a container

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