Docker enginer
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....')
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