Skip to content

Retrieve container logs using the CLI #5171

@manniche

Description

@manniche

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When managing containers in the serverless container service, debugging failing containers is difficult because there is no obvious way to retrieve the logs (stdout) from a deployed container.

How I imagine scw could expose this functionality

I would retrieve the container name and id using:

scw container container list

Using the ID, I can now get the information about the container:

scw container container get a00ca0b5-8a01-4a61-9c83-9717d13bf94f

and with this new functionality I would then be able to get the logs using:

scw container container logs a00ca0b5-8a01-4a61-9c83-9717d13bf94f

References

#1128

Metadata

Metadata

Assignees

Labels

containerContainer issues, bugs and feature requestsenhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions