Last active
March 12, 2021 23:20
-
-
Save chriskalmar/b4012e18131e45d05b1f19c84dbaacd7 to your computer and use it in GitHub Desktop.
Install docker on a new machine
This file contains 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
#!/bin/bash | |
# run: | |
# bash <(curl -fsSL <url-to-gist>) | |
apt-get update \ | |
&& apt-get upgrade -y | |
bash <(curl -fsSL https://get.docker.com ) | |
curl -L https://github.com/docker/compose/releases/download/1.28.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose \ | |
&& chmod +x /usr/local/bin/docker-compose | |
echo "Current entropy:" | |
cat /proc/sys/kernel/random/entropy_avail | |
apt-get install rng-tools -y | |
echo 'HRNGDEVICE=/dev/urandom' >> /etc/default/rng-tools | |
echo 'RNGDOPTIONS="-W 90% -t 1"' >> /etc/default/rng-tools | |
/etc/init.d/rng-tools restart | |
echo "New entropy:" | |
cat /proc/sys/kernel/random/entropy_avail | |
Author
chriskalmar
commented
Dec 17, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment