Google Cloud Logging driver (Engine)

Google Cloud Logging driver

The Google Cloud Logging driver sends container logs to Google Cloud Logging.

Usage

You can configure the default logging driver by passing the --log-driver option to the Docker daemon:

docker daemon --log-driver=gcplogs

You can set the logging driver for a specific container by using the --log-driver option to docker run:

docker run --log-driver=gcplogs ...

This log driver does not implement a reader so it is incompatible with docker logs.

If Docker detects that it is running in a Google Cloud Project, it will discover configuration from the instance metadata service.