Docker compose: 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 compose Debian 11: === ---- #'''<code>sudo apt update</code>''' #'''<code>sudo curl -L "<<nowiki>https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-$</nowiki>>(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose</code>''' #'''<code>sudo chmod +x /usr/local/bin/docker-compose</code>''' #'''<code>docker-compose --version</code>''' === Docker compose Debian...')
 
Sem resumo de edição
 
Linha 12: Linha 12:
=== Docker compose Debian 10: ===
=== Docker compose Debian 10: ===
----
----
#<code>sudo curl -L [<<nowiki>https://github.com/docker/compose/releases/download/1.25.3/docker-compose-</nowiki></code>uname>](<nowiki>https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname</nowiki>) -suname -m <code>-o /usr/local/bin/docker-compose</code>
#sudo curl -L <nowiki>https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname</nowiki> -s`-`uname -m` -o /usr/local/bin/docker-compose
#<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>
Linha 18: Linha 18:
=== Docker compose Debian 9: ===
=== Docker compose Debian 9: ===
----
----
#<code>sudo apt update</code>
#<code>sudo curl -L <nowiki>https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname</nowiki> -s`-`uname -m` -o /usr/local/bin/docker-compose</code>
#<code>sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common</code>
#<code>sudo chmod +x /usr/local/bin/docker-compose</code>
#<code>curl -fsSL <<nowiki>https://download.docker.com/linux/debian/gpg</nowiki>> | sudo apt-key add -</code>
#<code>docker-compose --version</code>
#<code>sudo add-apt-repository "deb [arch=amd64] <<nowiki>https://download.docker.com/linux/debian</nowiki>> $(lsb_release -cs) stable"</code>
#<code>sudo apt update</code>
#<code>apt-cache policy docker-ce</code>
#<code>sudo apt install docker-ce</code>
#<code>sudo systemctl status docker</code>

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

Instalação

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

Docker compose Debian 11:


  1. sudo apt update
  2. sudo curl -L "<https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-$>(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  3. sudo chmod +x /usr/local/bin/docker-compose
  4. docker-compose --version

Docker compose Debian 10:


  1. sudo curl -L https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
  2. sudo chmod +x /usr/local/bin/docker-compose
  3. docker-compose --version

Docker compose Debian 9:


  1. sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
  2. sudo chmod +x /usr/local/bin/docker-compose
  3. docker-compose --version