By default if you do not specify anything Docker will do swapping of your container. How do you prevent that from happening?
E.g docker run ... --memory-swap 1024m ...
Note the --memory-swap above will give your container 1024m total memory (internal + swap). So make sure your --memory is set to the same then swapping is disabled.
Posted October 12, 2016