Skip to content

Instantly share code, notes, and snippets.

@lotusirous
Last active January 24, 2020 23:48
Show Gist options
  • Select an option

  • Save lotusirous/bfbbb852b58e1f021811f2f5491cc5bf to your computer and use it in GitHub Desktop.

Select an option

Save lotusirous/bfbbb852b58e1f021811f2f5491cc5bf to your computer and use it in GitHub Desktop.

Things should be done for running docker in production

Add /etc/docker/daemon.json if you don't mind the full-of-disk and cgroup problems

{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "storage-driver": "overlay2",
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment