Search code examples
linuxdockerdocker-composefilesystems

Does Docker use swapfile by default?


I'm using docker compose v3. I manually added swapfile to Linux.

Would Docker use it by default on next system start?

Should i manually define swap in docker compose yml file?


Solution

  • Docker Linux containers use Linux Host OS resources, so the swap file is used too.