Created
June 1, 2017 10:11
-
-
Save JohannesBertens/048d5b436c051947636ccda105a65d7e to your computer and use it in GitHub Desktop.
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/sh | |
echo %wheel ALL=NOPASSWD:ALL > /etc/sudoers.d/wheel | |
adduser johannes | |
usermod -aG wheel johannes | |
mkdir /home/johannes/.ssh/ | |
cp /root/.ssh/authorized_keys /home/johannes/.ssh/authorized_keys | |
chown johannes.johannes /home/johannes/.ssh/authorized_keys | |
yum update -y | |
yum install -y yum-utils | |
yum install docker -y | |
wet -O /etc/docker/daemon.json https://gist.githubusercontent.com/DJBnjack/882e6320884cbaaa1c7b2c462408d7d3/raw/e6061158373732e93020ad200b523b05c58964f6/daemon.json | |
systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment