You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compose Switch is a replacement to the Compose V1 docker-compose (python) executable. It translates the command line into Compose V2 docker compose then run the latter.
installation
We provide a script for automated installation:
$ curl -fL https://raw.githubusercontent.com/docker/compose-switch/master/install_on_linux.sh | sh
Manual installation
download compose-switch binary for your architecture
$ update-alternatives --display docker-composedocker-compose - auto mode link best version is /usr/local/bin/compose-switch link currently points to /usr/local/bin/compose-switch link docker-compose is /usr/local/bin/docker-compose/usr/bin/docker-compose - priority 1/usr/local/bin/compose-switch - priority 99
select Compose implementation to run by docker-compose
$ update-alternatives --config docker-composeThere are 2 choices for the alternative docker-compose (providing /usr/local/bin/docker-compose). Selection Path Priority Status------------------------------------------------------------* 0 /usr/local/bin/compose-switch 99 auto mode 1 /usr/bin/docker-compose 1 manual mode 2 /usr/local/bin/compose-switch 99 manual modePress <enter> to keep the current choice[*], or type selection number: