Skip to content

Instantly share code, notes, and snippets.

@hamdouni
Last active October 13, 2017 10:53
Show Gist options
  • Save hamdouni/087697ddb89cd72c2ebaa3c0d6fc298c to your computer and use it in GitHub Desktop.
Save hamdouni/087697ddb89cd72c2ebaa3c0d6fc298c to your computer and use it in GitHub Desktop.
Lunch a docker container with less cpu ressource (simulate slow machine)
# Example with a mysql container running at 10% cpu
docker run --cpu-quota=10000 --name esc-db -d --volumes-from dbdata -p 127.0.0.1:3306:3306 -v $(pwd)/data:/data softinnov/esc-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment