-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path04-docker.sh
More file actions
23 lines (16 loc) · 917 Bytes
/
04-docker.sh
File metadata and controls
23 lines (16 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
USER=$(whoami)
echo '________ __ .__ '
echo '\______ \ ____ ____ | | __ ___________ |__| ____ '
echo ' | | \ / _ \_/ ___\| |/ // __ \_ __ \ | |/ _ \ '
echo ' | ` ( <_> ) \___| <\ ___/| | \/ | ( <_> )'
echo '/_______ /\____/ \___ >__|_ \\___ >__| /\ |__|\____/ '
echo ' \/ \/ \/ \/ \/ '
sudo apt-get install aufs-tools linux-image-virtual linux-image-extra-virtual -y
curl -fsSL https://get.docker.com/gpg | sudo apt-key add -
curl -fsSL https://get.docker.com/ | sh
sudo usermod -aG docker $USER
mkdir ~/docker
# disable dockers default iptables behavior, I will use ufw!
sudo sed -i 's/#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4/DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 --iptables=false"/g' /etc/default/docker
echo "To use the docker command as unprivileged user you have to relogin"