Limit docker ressources

Written by admin on November 17, 2015 Categories: Docker Tags: , , ,
docker run --cpu-shares 20 --memory 300M --memory-swap -1 -d -P -p 22001:22 --name sshd001 sshd
  • –cpu-shares 20: donne 20% de ressources CPU max
  • –memory 300M: limite à 300M la mémoire
  • –memory-swap -1: swap ilimitée
No Comments on Limit docker ressources

Leave a Reply

Your email address will not be published. Required fields are marked *