Docker

The HCloud Docker agents log can be retrieved like any container log in Docker.

Type

sudo docker stats

to get a list of all your containers, then pick the name of the client container which you want to read the logfiles of.

Alternatively, search for a string to reduce the number of line output and get only lines with the hcloud-string in it.

sudo docker stats | grep -i hcloud

Copy the name of the agents container affected and type

sudo docker logs hcloudagentcontainername

to retrieve the logs, or write them into a file like this:

sudo docker logs hcloudagentcontainername > /path/to/mylogfile.log

Like with any container, you can use third party tools to automatically collect logs and process or visualize information from your agents that are running as containers. You can also use helmut.cloud to collect and distribute logfiles to a location of your liking.

Last updated