Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State field is absent in container ls on some versions of Docker #138

Closed
bwateratmsft opened this issue Nov 29, 2022 · 1 comment · Fixed by #141
Closed

State field is absent in container ls on some versions of Docker #138

bwateratmsft opened this issue Nov 29, 2022 · 1 comment · Fixed by #141
Labels

Comments

@bwateratmsft
Copy link
Contributor

bwateratmsft commented Nov 29, 2022

Discovered in microsoft/vscode-docker#3724. Likely the user has an older version of Docker, I see from the screenshot that the docker context ls command also lacks the --format argument, which is not something we can work around. Still, if we can gracefully handle the missing State field that would be ideal.

@bwateratmsft
Copy link
Contributor Author

I think we would need to find a canary field that suggests that State is absent. I'm not a big fan of that approach; it sounds very fragile / too heuristic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants