4 echo `hostname -I` `hostname` >> /etc/hosts
6 cat > /etc/docker/daemon.json <<EOF
8 "insecure-registries" : ["__docker_proxy__"]
11 cat > /etc/apt/apt.conf.d/30proxy<<EOF
12 Acquire::http { Proxy "http://__apt_proxy__"; };
13 Acquire::https::Proxy "DIRECT";
16 apt-get -y install docker.io
17 usermod -aG docker ubuntu
18 docker run --restart unless-stopped -d -p 8080:8080 rancher/server:v1.6.10