Skip to content

sjason19/Docker-CPU-Throttler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Docker-CPU-Throttler

What is this?

  • Docker does not run natively on OSX, so unfortunately due to some syncing issues the com.docker.hyperkit process takes up over 100% CPU power. This is a simple solution to throttle the amount of CPU usage that docker hyperkit uses.

How to use?

  • First you will need to have cputhrottle installed by running brew install cputhrottle
  • Next, clone this script and cd into the directory you installed it to
  • Before running the Docker-CPU-Throttler script make sure your docker containers are up and running so we can locate the p_id
  • cd into the directory you installed the script and run the following command: sudo sh lim_cpu_docker.sh
  • Open up your Activity Monitor and you should notice your docker container not utilizing more than 50% CPU usage

cpu_throttle

About

A simple shell script to limit Docker hyperkit CPU usage on OSX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages