Skip to content

Instantly share code, notes, and snippets.

@nsouto
Created January 9, 2023 21:30
Show Gist options
  • Save nsouto/21850c70a2a04b1839d61b208b12d996 to your computer and use it in GitHub Desktop.
Save nsouto/21850c70a2a04b1839d61b208b12d996 to your computer and use it in GitHub Desktop.
Cloud Init
#cloud-config
runcmd:
- curl -fsSL https://get.docker.com | sh
- docker pull portainer/portainer-ee:latest
- docker volume create portainer_data
- docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment