Docker for Mac Memory Leak

It seems that the default settings in Docker for Mac do not enforce any log rotation for services running on the integrated Kubernetes. This led to a seeming memory leak that would eventually crash my computer for long-running services. While this is somewhat understandable, given that Docker for Mac is clearly targeted for development, it still seems like an unfortunate default.

You can enforce a max size for logs by editing $HOME/.docker/daemon.json to include:

  "log-opts": {
    "max-size": "10m"

© 2018. All rights reserved.

Powered by Hydejack v8.1.1