#!/bin/bash set -ex sudo systemctl stop systemd-resolved cat << EOF | sudo tee /etc/resolv.conf nameserver 8.8.8.8 EOF cat << EOF | sudo tee /etc/hosts 127.0.0.1 localhost 192.168.1.10 master 192.168.1.21 worker1 192.168.1.22 worker2 192.168.1.23 worker3 EOF sudo apt-get update sudo apt-get install -y docker.io curl -s http://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - cat <