Docker enginer: mudanças entre as edições
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 |
||
Linha 27: | Linha 27: | ||
#<code>sudo systemctl status docker</code> | #<code>sudo systemctl status docker</code> | ||
=== Docker compose Debian 9 === | === Docker compose 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> | #<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> | ||
#<code>sudo chmod +x /usr/local/bin/docker-compose</code> | #<code>sudo chmod +x /usr/local/bin/docker-compose</code> | ||
#<code>docker-compose --version</code> | #<code>docker-compose --version</code> |
Edição das 21h15min de 10 de julho de 2023
Instalação
Dentro do ambiente Linux, siga em ordem os comandos abaixo:
Docker enginer Debian 11:
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y
curl -fsSL <https://download.docker.com/linux/debian/gpg> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
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
sudo apt update
sudo apt -y install docker-ce docker-ce-cli containerd.io
sudo docker version-——————————-0
sudo systemctl status docker
sudo systemctl start docker
sudo docker run hello-world
sudo usermod -aG docker linuxtechi - **Permitir que o usuário local execute o comando Docker**
Docker enginer Debian 10:
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL <https://download.docker.com/linux/debian/gpg> | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] <https://download.docker.com/linux/debian> $(lsb_release -cs) stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker
Docker compose Debian 9:
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
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version