How to upgrade docker-compose to the latest version

The first step is to make sure that you have docker-compose installed. If you are using Homebrew, the easiest way to install it is by running brew install docker-compose . The easiest way to upgrade to a newer version of docker-compose is by running the following command.

How to upgrade docker-compose to latest version

on Jan 01, 1970
// First, remove the old version:

//STEP- 1
// If installed via apt-get
sudo apt-get remove docker-compose
// If installed via curl
sudo rm /usr/local/bin/docker-compose
//If installed via pip
pip uninstall docker-compose

// STEP-2 GET LATEST VERSION
// curl + grep
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')

// FINAL_STEP Install and make it executeable
DESTINATION=/usr/local/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
sudo chmod 755 $DESTINATION

// for docker-compose 3.9 
// https://docs.docker.com/compose/compose-file/compose-file-v3/#resources

Add Comment

0

instalar docker compose ubuntu

on Jan 01, 1970
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Add Comment

0

how to upgrade docker-compose version

on Jan 01, 1970
First step, remove the existing version

// If installed via apt-get
sudo apt-get remove docker-compose

// If installed via curl
sudo rm /usr/local/bin/docker-compose

// if installed via pip
pip uninstall docker-compose

Second step, Install the new one (check the latest version from here https://docs.docker.com/compose/install/)

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

Third step, make it accessible

sudo chmod +x /usr/local/bin/docker-compose

Fourth, finally check whether version is update

docker-compose --version

Add Comment

0

Once you have docker-compose installed, you can upgrade it. The above mentioned command will update your version of docker-compose from 1.6.2 to 1.7:

Shell/Bash answers related to "How to upgrade docker-compose to latest version"

View All Shell/Bash queries

Shell/Bash queries related to "How to upgrade docker-compose to latest version"

How to upgrade docker-compose to latest version how to return to latest version on git how to upgrade gradle version in linux docker compose rebuild image install docker-compose install docker-compose ec2 docker push image to docker hub how to install a specific docker version on centos machine get the latest file in a directory powershell upgrade git on centos 7 node upgrade mac os x mac of hide "upgrade now" pip install --upgrade pip upgrade all python3 GIVINGSTORM.py -n Windows-Upgrade -p b64 encoded payload -c amazon.com/c2/domain HTA Example ubuntu upgrade versionScaricamento delle informazioni del repository non riuscito Controllare la propria connessione a Internet. Pip install upgrade pip upgrade pip3 how to restart docker linux docker post installation steps linux docker stop all containers docker interact with running container install docker centos 8 write command docker without need write sudo install docker on ubuntu 18.04 docker prune images intall docker ubuntu command docker run restart always install docker on centos The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file how to install docker on ubuntu docker pack image to file running docker in wsl how to check if i have docker installed docker run npm install express syntax remove all docker iamges commandl docker image load docker delete image ubuntu install docker docker see containers full command docker NoRouteToHostException: No route to host (Host unreachable) install docker in ubuntu docker push image pushing image to docker hub docker create display all container docker where is docker images stored windows wsl2 how to pull private docker image in helm charts run mongo docker image on ubuntu 20 docker wsl2 vmmem Reading state information... Done E: Unable to locate package docker-ce docker cachebust docker restart prune volume docker docker run portainer remove container and volume docker how to remove a docker container run docker how to remove docker images docker rename a container docker cp file from host to container docker build from dockerfile docker run all port mapping how to delete a docker container docker exec logs docker daemon docker cli docker current running containers docker url image docker load remove specific image from docker push to docker hub install docker ec2 docker definition docker download docker cannot stop container how to restart docker service Add users to docker group restart docker container add user to docker group docker restart all services docker image save docker system prune find react version how to check for angular cli version pip command to install xlrd version 1.2.0 conda update package to specific version how to see shorthand version of git log cudnn version linux get current kernel version install exact version npm check cuda nn version install angular cli version phoenix version check systemd version check rails no migration with version number how to check os version in laptop install a pkge at a specified version how to install particular version of rabbitmq service version nmap sqitch get rasbien version pip install sklearn specific version chrome version command line gradle version how to check gunicorn version find cudnn version how to change heroku version locally check cocoapods version Update cocoapods version mac Update node version windows how to check react version how to check node version in cmd

Browse Other Code Languages

CodeProZone