Docker enginer: mudanças entre as edições

De Wiki NBS
Ir para navegação Ir para pesquisar
(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....')
 
Sem resumo de edição
 
(2 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 2: Linha 2:
Dentro do ambiente Linux, siga em ordem os comandos abaixo:
Dentro do ambiente Linux, siga em ordem os comandos abaixo:


=== Docker enginer Debian 11: ===
=== Docker engine Debian 11: ===
----
----
#<code>sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y</code>
#<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>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.gpg] <<nowiki>https://download.docker.com/linux/debian</nowiki>> \\</code>
#<code>echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] <nowiki>https://download.docker.com/linux/debian</nowiki> $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null</code>
#<code>(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null</code>
#<code>sudo apt update</code>
#<code>sudo apt update</code>
#<code>sudo apt -y install docker-ce docker-ce-cli containerd.io</code>
#<code>sudo apt-get install docker-ce docker-ce-cli containerd.io</code>
#<code>sudo docker version-——————————-0</code>
#<code>sudo docker version-——————————-0</code>
#<code>sudo systemctl status docker</code>
#<code>sudo systemctl status docker,</code>
#<code>sudo systemctl start docker</code>
#0
#<code>sudo docker run hello-world</code>
#<code>sudo usermod -aG docker linuxtechi - **Permitir que o usuário local execute o comando Docker**</code>


=== Docker enginer Debian 10: ===
=== Docker engine Debian 10: ===
----
----
#<code>sudo apt update</code>
#<code>sudo apt update</code>
Linha 27: Linha 24:
#<code>sudo systemctl status docker</code>
#<code>sudo systemctl status docker</code>


=== Docker compose Debian 9 ===
=== Docker engine Debian 9: ===
----
----
#<code>sudo curl -L [<<nowiki>https://github.com/docker/compose/releases/download/1.22.0/docker-compose-</nowiki></code>uname>](<nowiki>https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname</nowiki>) -suname -m <code>-o /usr/local/bin/docker-compose</code>
#sudo apt update
#<code>sudo chmod +x /usr/local/bin/docker-compose</code>
#sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
#<code>docker-compose --version</code>
#curl -fsSL <nowiki>https://download.docker.com/linux/debian/gpg</nowiki> | sudo apt-key add -
#sudo add-apt-repository "deb [arch=amd64] <nowiki>https://download.docker.com/linux/debian</nowiki> $(lsb_release -cs) stable"
#sudo apt update
#apt-cache policy docker-ce
#sudo apt install docker-ce
#sudo systemctl status docker

Edição atual tal como às 20h40min de 11 de julho de 2023

Instalação

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

Docker engine 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 $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  4. sudo apt update
  5. sudo apt-get install docker-ce docker-ce-cli containerd.io
  6. sudo docker version-——————————-0
  7. sudo systemctl status docker,
  8. 0

Docker engine 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 engine Debian 9:


  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