Skip to content

Instantly share code, notes, and snippets.

@hj91
Created June 16, 2024 07:47
Show Gist options
  • Save hj91/859e5e8d021dc2814f9db3c9cc6bfc2a to your computer and use it in GitHub Desktop.
Save hj91/859e5e8d021dc2814f9db3c9cc6bfc2a to your computer and use it in GitHub Desktop.
Download portainer community edition and set it up on Bufferstack.IO Super Container OS
#!/bin/bash
# Create a volume for Portainer Server to store its database
docker volume create portainer_data
# Download and install the Portainer Server container
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-ce:latest
# Check that the Portainer Server container has started
docker ps
# Log into your Portainer Server instance by opening a web browser and going to:
# https://localhost:9443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment