Last active
September 5, 2019 19:04
-
-
Save perigrin/8eafbe2c2298e5761a1387461d40df5f to your computer and use it in GitHub Desktop.
Cloud Init Example w/ Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config: | |
security.nesting: "true" | |
user.user-data: | | |
#cloud-config | |
package_upgrade: true | |
users: | |
- name: perigrin | |
sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
groups: sudo,admin | |
shell: /bin/bash | |
apt: | |
preserve_sources_list: true | |
sources: | |
docker.list: | |
source: deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable | |
keyid: 7EA0A9C3F273FCD8 | |
packages: | |
- docker-ce | |
- docker-ce-cli | |
- containerd.io | |
description: Default LXD profile | |
devices: | |
eth0: | |
nictype: bridged | |
parent: lxdbr0 | |
type: nic | |
root: | |
path: / | |
pool: default | |
type: disk | |
name: docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment