├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 urnauzao 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sobre 2 | - Todo o material contido neste tutorial está presente no vídeo asseguir, sugiro que veja o vídeo, pois poderá sanar todas suas dúvida além de ser uma abordagem na prática de como realizar toda a instalação. 3 | - [Clique Aqui para ver o Tutorial em Vídeo](https://teste.io/#) 4 | - O conteúdo aqui presente foi extrado do guia oficial de instalação do Docker. [acessar guia gficial](https://docs.docker.com/engine/install/debian/) 5 | 6 | # Requisitos: 7 | - Em caso de ambiente local de desenvolvimento, ter uma versão do Linux compatível com o Docker Engine. 8 | [Versões de Linux compativeis](https://docs.docker.com/engine/install/) 9 | 10 | - Em caso de ambiente de produção, ter escolhido uma hospedagem e estar com acesso Root SSH a ela. 11 | - Na dúvida veja este tutorial sobre como escolher uma hospedagem e fazer o primeiro acesso SSH. [Ver Tutorial Agora](https://youtu.be/oQX7KyUsH3g) 12 | - Sugestão para constração de Hospedagem com 20% de desconto, [clique aqui](https://hostinger.com.br?REFERRALCODE=1JULIOCESAR92) 13 | 14 | # Ajuda 15 | - Como ver a versão do seu Linux, execute no terminal 16 | ```sh 17 | hostnamectl 18 | ``` 19 | 20 | ```sh 21 | -- Exemplo de saída 22 | Static hostname: vps.urnau.com.br 23 | Icon name: computer-container 24 | Chassis: container 25 | Machine ID: 8719463e9a638aa1bb58c333cec521dc 26 | Boot ID: 99bb23647000aaabb7c9ba1c3c17aeac 27 | Virtualization: openvz 28 | Operating System: Debian GNU/Linux 11 (bullseye) 29 | Kernel: Linux 4.19.0 30 | Architecture: x86-64 31 | ``` 32 | 33 | # Iniciando instalação no servidor Debian 34 | 35 | - Acessar pasta raiz do usuário 36 | ```sh 37 | cd ~ 38 | ``` 39 | 40 | - Remover docker antigo 41 | ```sh 42 | sudo apt-get remove docker docker-engine docker.io containerd runc 43 | ``` 44 | 45 | - Repositorio Docker 46 | ````sh 47 | sudo apt-get update && 48 | sudo apt-get install \ 49 | ca-certificates \ 50 | curl \ 51 | gnupg \ 52 | lsb-release 53 | ```` 54 | 55 | - Adicionar chave GPG oficial do Docker 56 | ```sh 57 | sudo mkdir -m 0755 -p /etc/apt/keyrings && 58 | curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg 59 | ``` 60 | 61 | - Concluir adição do repositório 62 | ```sh 63 | echo \ 64 | "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ 65 | $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null 66 | ``` 67 | 68 | - Atualizando o sistema 69 | ```sh 70 | sudo apt-get update 71 | ``` 72 | - Em caso de erro execute 73 | ```sh 74 | sudo chmod a+r /etc/apt/keyrings/docker.gpg && 75 | sudo apt-get update 76 | ``` 77 | 78 | - Instalando a última versão do Docker 79 | ```sh 80 | sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin 81 | ``` 82 | 83 | - Testando o Docker 84 | ```sh 85 | sudo docker run hello-world 86 | ``` 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | --------------------------------------------------------------------------------