Skip to content

Instantly share code, notes, and snippets.

@dduportal
Created July 7, 2020 09:47
Show Gist options
  • Save dduportal/bd88665eeec7d1612d911ec9053c9600 to your computer and use it in GitHub Desktop.
Save dduportal/bd88665eeec7d1612d911ec9053c9600 to your computer and use it in GitHub Desktop.
#cloud-config
package_update: true
manage-resolv-conf: true
resolv_conf:
nameservers:
- '9.9.9.9'
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
runcmd:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get update -y
- apt-get install -y docker-ce docker-ce-cli containerd.io
- usermod -aG docker ubuntu
- systemctl start docker
- systemctl enable docker
final_message: "Ready to Dock!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment