Skip to content

Unable to start containers under certain conditions #14494

@AmelBawa-msft

Description

@AmelBawa-msft

Reference: https://task.ms/61506292

Create container with --rm option

PS C:\src\wsl> wslc container create --name Demo -e 'A=B' --rm alpine:latest env
e3fe954042919aded004bf25334f8046c88a31c98d2e4b9b5ab97153217cb66d

PS C:\src\wsl> wslc start Demo -a
Element not found.
Error code: ERROR_NOT_FOUND

Starting container with attach option

PS C:\src\wsl> wslc container create --name Demo -e 'A=B' alpine:latest env
ddd34f7f0c433354d2a84045e7d144e863d6a8a7e1cd0c43599c93379e40671a

PS C:\src\wsl> wslc start Demo -a
The group or resource is not in the correct state to perform the requested operation.
Error code: ERROR_INVALID_STATE

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions