Skip to content

[Bug]: container system restart is causing an abnormal state #175

@fun7257

Description

@fun7257

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

(base) ➜ ~ container list
ID IMAGE OS ARCH STATE ADDR
my-mysql docker.io/library/mysql:latest linux arm64 running 192.168.64.2
my-redis docker.io/library/redis:latest linux arm64 running 192.168.64.3

(base) ➜ ~ container system restart
Verifying apiserver is running...
Done

(base) ➜ ~ container list
ID IMAGE OS ARCH STATE ADDR

(base) ➜ ~ container list --all
ID IMAGE OS ARCH STATE ADDR
my-mysql docker.io/library/mysql:latest linux arm64 stopped
my-redis docker.io/library/redis:latest linux arm64 stopped

(base) ➜ ~ container start my-mysql
Error: invalidState: "container expected to be in created state, got: running"

Current behavior

Restart is causing an abnormal state

Expected Behavior

I would like to restore the normal status display. Thank you.

Environment

- OS: MacOS 15.5
- swift: Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
- xcode: Version 16.4 (16F6)
- container: container CLI version 0.1.0 (build: release, commit: 0fd8692)

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

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