Docker enginer

De Wiki NBS
Revisão de 19h52min de 10 de julho de 2023 por Marcelo.vieira (discussão | contribs) (Criou página com '= Instalação = Dentro do ambiente Linux, siga em ordem os comandos abaixo: === Docker enginer Debian 11: === ---- #<code>sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y</code> #<code>curl -fsSL <<nowiki>https://download.docker.com/linux/debian/gpg</nowiki>> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg</code> #<code>echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring....')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

Instalação

Dentro do ambiente Linux, siga em ordem os comandos abaixo:

Docker enginer Debian 11:


  1. sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y
  2. curl -fsSL <https://download.docker.com/linux/debian/gpg> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  3. echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] <https://download.docker.com/linux/debian> \\
  4. (lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  5. sudo apt update
  6. sudo apt -y install docker-ce docker-ce-cli containerd.io
  7. sudo docker version-——————————-0
  8. sudo systemctl status docker
  9. sudo systemctl start docker
  10. sudo docker run hello-world
  11. sudo usermod -aG docker linuxtechi - **Permitir que o usuário local execute o comando Docker**

Docker enginer Debian 10:


  1. sudo apt update
  2. sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  3. curl -fsSL <https://download.docker.com/linux/debian/gpg> | sudo apt-key add -
  4. sudo add-apt-repository "deb [arch=amd64] <https://download.docker.com/linux/debian> $(lsb_release -cs) stable"
  5. sudo apt update
  6. apt-cache policy docker-ce
  7. sudo apt install docker-ce
  8. sudo systemctl status docker

Docker compose Debian 9


  1. sudo curl -L [<https://github.com/docker/compose/releases/download/1.22.0/docker-compose-uname>](https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname) -suname -m -o /usr/local/bin/docker-compose
  2. sudo chmod +x /usr/local/bin/docker-compose
  3. docker-compose --version