Skip to content

Instantly share code, notes, and snippets.

@JohannesBertens
Created June 1, 2017 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohannesBertens/048d5b436c051947636ccda105a65d7e to your computer and use it in GitHub Desktop.
Save JohannesBertens/048d5b436c051947636ccda105a65d7e to your computer and use it in GitHub Desktop.
#!/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