blob: da1955446c7f505e7350f9963b68564b3389fa60 [file] [log] [blame]
Gary Wu1ff56672018-01-17 20:51:45 -08001#!/bin/bash -x
2printenv
3
4echo `hostname -I` `hostname` >> /etc/hosts
5mkdir -p /etc/docker
6cat > /etc/docker/daemon.json <<EOF
7{
8 "insecure-registries" : ["__docker_proxy__"]
9}
10EOF
11cat > /etc/apt/apt.conf.d/30proxy<<EOF
12Acquire::http { Proxy "http://__apt_proxy__"; };
13Acquire::https::Proxy "DIRECT";
14EOF
15apt-get -y update
16apt-get -y install docker.io
17usermod -aG docker ubuntu
18docker run --restart unless-stopped -d -p 8080:8080 rancher/server:v1.6.10