Last active
October 12, 2021 00:31
-
-
Save RPTST/1d7829203d06366025e8d4c03a171368 to your computer and use it in GitHub Desktop.
docker install ubuntu
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
# Update your system | |
sudo apt update && sudo apt upgrade -y | |
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
# Install Docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
sudo apt install docker.io | |
sudo docker run hello-world | |
# Install Docker-compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo docker-compose --version | |
sudo systemctl enable docker | |
sudo systemctl start docker | |
sudo systemctl status docker | |
# Install Portainer | |
sudo docker run -d \ | |
--name="portainer" \ | |
--restart on-failure \ | |
-p 9000:9000 \ | |
-p 8000:8000 \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v portainer_data:/data \ | |
portainer/portainer-ce:latest | |
# Install templetes | |
Under the add external templetes option paste this link | |
https://github.com/SelfhostedPro/selfhosted_templates/blob/master/Template/portainer-v2.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment