Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install docker compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Comment

install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 
sudo chmod +x /usr/local/bin/docker-compose
Comment

install docker compose

//You can install latest version
sudo apt-get update
sudo apt-get install docker-compose-plugin

//or you can install other versions
sudo apt-get install docker-compose-plugin=<VERSION_STRING>
  
//Install Manually
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.11.2/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose

chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

//Test
docker compose version
Comment

Docker Compose installation

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.28.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
Comment

Install Docker Compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

#Note:
#If the command docker-compose fails after installation, check your path. You can also create a symbolic link to /usr/bin or any other directory in your path.For example: 
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version

#Upgrading:
docker-compose migrate-to-labels

#Alternatively, if you’re not worried about keeping them, you can remove them. Compose just creates new ones.
docker container rm -f -v myapp_web_1 myapp_db_1 ...

#Uninstallation:
#To uninstall Docker Compose if you installed using curl:
sudo rm /usr/local/bin/docker-compose

#To uninstall Docker Compose if you installed using pip:
pip uninstall docker-compose
Comment

install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Comment

install docker compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Comment

install docker-compose

DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
Comment

how to install docker compose on windows

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateyin"
Comment

install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Comment

docker compose installation

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Comment

install docker-compose

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Comment

install docker compose

sudo curl -L "https:ocker/compose/releases///github.com/ddownload/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Comment

docker compose install

mkdir -p ~/.docker/cli-plugins/
curl -SL https://github.com/docker/compose/releases/download/v2.3.3/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
//CHECK THE VERSION
chmod +x ~/.docker/cli-plugins/docker-compose
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu iptables add rule 
Shell :: bash memory 
Shell :: video editor for ubuntu 21.10 
Shell :: add ssh to github 
Shell :: how to create new branch in git 
Shell :: mkdir -p option 
Shell :: ssh-keygen ed25519 
Shell :: how to copy folder in linux 
Shell :: download terraform 
Shell :: sudo pip3 install 
Shell :: git revert commit for single file 
Shell :: clone repo with large size using git bash 
Shell :: how to format pendrive on ubuntu 
Shell :: NGINX systemd service file 
Shell :: to take screenshot in ubuntu 
Shell :: how to download virtualbox on kali linux 
Shell :: wsl2 curl localhost 
Shell :: ssh list port forwards 
Shell :: shell script tutorial 
Shell :: git config log 
Shell :: vi quit 
Shell :: how to switch branches git 
Shell :: rm vs rmdir 
Shell :: github.com api 
Shell :: sed add newline 
Shell :: how to open files using terminal in ubuntu 
Shell :: git lfs all files in folder 
Shell :: install gtk python 
Shell :: Clone repository from the command line 
Shell :: remote: Permission to asfand005/test.git denied to asfand87. 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =