-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #731 from KBVE/dev
Pulling refs/heads/dev into Main
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
#!/bin/sh | ||
set -e | ||
sudo 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 | ||
# sudo 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 | ||
# Based off of DanielBene's Docker_Install.sh https://gist.github.com/danielbene/98d7a5b08fd5c2c18d4883f250e4b6c6 | ||
|
||
DIST_BASE="ubuntu" | ||
|
||
apt-get update | ||
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | ||
|
||
curl -fsSL https://download.docker.com/linux/$DIST_BASE/gpg | sudo apt-key add - | ||
apt-key fingerprint 0EBFCD88 | ||
|
||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$DIST_BASE $(lsb_release -cs) stable" | ||
apt-get install -y docker-ce docker-ce-cli containerd.io | ||
|
||
docker run hello-world | ||
docker volume create portainer_data | ||
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce | ||
|
||
apt-get install -y docker-compose |