mayday icon indicating copy to clipboard operation
mayday copied to clipboard

Collect logs from a specified container

Open brianredbeard opened this issue 10 years ago • 3 comments

As we deploy more of our components in containers we will need a method for collecting logs from a known path inside of a container. In the case of some products this can be handled through inspecting a container, finding it's "logs" volume, and grabbing all of that data.

brianredbeard avatar Nov 03 '14 01:11 brianredbeard

@brianredbeard this sounds a little nebulous - can you be more specific about what you'd like implemented now?

jonboulle avatar Nov 04 '14 07:11 jonboulle

This is a generic version of #13

brianredbeard avatar Apr 21 '15 16:04 brianredbeard

This seems like a useful feature to have still.

Currently, our "docker support" is to copy in a bunch of files located in/var/lib/docker.

Looking through https://godoc.org/github.com/docker/engine-api, I don't see an easy way to access files. It might simply be best to shell out to docker inspect.

thoughts?

tschuy avatar Aug 19 '16 19:08 tschuy