Created
June 13, 2021 04:01
-
-
Save armando-couto/7c3fdf607c4cbd0ec6128e16d42d8997 to your computer and use it in GitHub Desktop.
Instalando Docker no Ubuntu 20.04
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
LINK: https://phoenixnap.com/kb/install-docker-on-ubuntu-20-04 | |
------------------------------------------------------------------------------ | |
$ sudo apt update | |
$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
$ 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 --version | |
LINK: https://smarthomepursuits.com/how-to-install-portainer-with-docker-in-ubuntu-20-04/ | |
------------------------------------------------------------------------------ | |
$ sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
$ sudo chmod +x /usr/local/bin/docker-compose | |
$ sudo docker volume create portainer_data | |
$ sudo docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /srv/portainer:/data portainer/portainer | |
$ sudo docker start portainer | |
Comandos no linux | |
------------------------------------------------------------------------------ | |
$ sudo systemctl start docker | |
$ sudo systemctl enable docker | |
$ sudo systemctl status docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment