Created
February 11, 2018 07:33
-
-
Save gwsu2008/4cf718e0c2f632419e6801bca4456bed to your computer and use it in GitHub Desktop.
docker-commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /proc/mounts | grep "mapper/docker" | awk '{print $2}' | xargs -r umount | |
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') | |
docker rm $(docker ps -a -q) | |
docker inspect --format '{{ .NetworkSettings.IPAddress }}' fd2ee0f9f4f4 | |
curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
curl -L https://github.com/docker/machine/releases/download/v0.3.0/docker-machine_linux-amd64 > /usr/local/bin/docker-machine | |
chmod +x /usr/local/bin/docker-machine | |
Increase docker file limit for containers (/etc/init.d/docker - add ulimit -n 32000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment