Docker Community Forums

Share and learn in the Docker community.

Swap memory for container

Hi guys, please assis me here,
leat assume ,i have a linux with 7gb of ram , i have a container running /
if i need to assisgn swap memory to my container ,

  1. do i need to set in my linux box , like swapon …
    2)or i need to set as docker update --memory --memory swap ?
    out of these which is the recommended type

hello 2,

Can you stop your container ?
In that case, you can start it again with --memory-swap flag to assign the swap.

Best regards,