Docker awsLogs driver logging to AWS and local

Expected behavior

I have configured awsLogs driver to my docker container and it is logging to Cloudwatch successfully. The issue is that when i run docker logs, it also prints out all the logs from the container locally. Does this mean that it’s storing the logs locally and taking up my disk space?

Actual behavior

I expect that when i run docker logs, it gives an output indicating that logs reading is not available locally.

Additional Information

The docker daemon is using json-file as the log driver, but i have made sure that the container is set to awsLogs

How did you configure the logging driver? If you changed the daemon json, you need to restart Docker and that will not affect existing containers so you need to recreate the container as well…