Gary Wu | 688201c | 2018-02-15 12:05:26 -0800 | [diff] [blame] | 1 | #!/bin/bash |
Gary Wu | 2845d14 | 2018-08-01 12:02:37 -0700 | [diff] [blame] | 2 | sed -i '/^ #!\/bin\/bash/a\ |
Gary Wu | 688201c | 2018-02-15 12:05:26 -0800 | [diff] [blame] | 3 | mkdir -p /etc/docker\ |
4 | cat > /etc/docker/daemon.json <<EOF\ | ||||
5 | {\ | ||||
6 | "insecure-registries" : ["192.168.31.204:5000"]\ | ||||
7 | }\ | ||||
8 | EOF\ | ||||
9 | cat > /etc/apt/apt.conf.d/30proxy<<EOF\ | ||||
10 | Acquire::http { Proxy "http://192.168.31.204:3142"; };\ | ||||
11 | Acquire::https::Proxy "DIRECT";\ | ||||
12 | EOF\ | ||||
13 | apt-get -y update' $1 |