My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

Enabling memory and swap accounting for Docker

This document (7016754) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12

Situation

The following error is generated when the Docker host kernel does not take memory and swap accounting into consideration:

WARNING: Your kernel does not support cgroup swap limit.
WARNING: Your kernel does not support swap limit capabilities. Limitation discarded.

Resolution

To remove this error message perform the following steps:
  • Start YaST, and select System > Boot Loader
  • Click 'Kernel Parameters'
  • Enter the following strings inside of the “Optional Kernel Command Line Parameter”:
    cgroup_enable=memory swapaccount=1
  • Press the OK button
  • Reboot your machine

Alternatively:

  • edit the /etc/default/grub file
  • Add the following string inside of the GRUB_CMDLINE_LINUX_DEFAULT variable:
    cgroup_enable=memory swapaccount=1
  • Save the change
  • Run: “sudo update-bootloader –refresh
  • Reboot your machine

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7016754
  • Creation Date:11-AUG-15
  • Modified Date:11-AUG-15
    • SUSESUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center