Unable to view container logs on docker host when I use awslogs driver

I set "stdout" in the docker file to send application logs to the host docker. My requirement is to send container logs to the cloud and docker hosts. For cloudwatch, I used the awslogs driver in docker-compose, but now the logs do not appear in the docker host [docker log container]. I am using an instance of EC2.

Error:

"logs" command is supported only for "json-file" and "journald" logging drivers (got: awslogs)

Please suggest how to implement both.

+4
source share
1 answer

Currently, only enterprise version 18.03.1-ee-1 supports multiple log drivers.

https://docs.docker.com/engine/release-notes/#older-docker-engine-ee-release-notes

0

Source: https://habr.com/ru/post/1681756/


All Articles