4 echo `hostname -I` `hostname` >> /etc/hosts
6 if [ ! -z "__docker_proxy__" ]; then
7 cat > /etc/docker/daemon.json <<EOF
9 "insecure-registries" : ["__docker_proxy__"]
13 if [ ! -z "__apt_proxy__" ]; then
14 cat > /etc/apt/apt.conf.d/30proxy<<EOF
15 Acquire::http { Proxy "http://__apt_proxy__"; };
16 Acquire::https::Proxy "DIRECT";
20 apt-get -y install docker.io
21 usermod -aG docker ubuntu
22 docker run --restart unless-stopped -d -p 8080:8080 rancher/server:v1.6.14