Install the Compose plugin | ubuntu docker-compose
ImportantDockersdocumentationreferstoanddescribesComposeV2functionality.EffectiveJuly2023,ComposeV1stoppedreceivingupdatesandisnolongerinnewDockerDesktopreleases.ComposeV2hasreplaceditandisnowintegratedintoallcurrentDockerDesktopversions.Formoreinformation,seeMigratetoComposeV2[1].OnthispageyoucanfindinstructionsonhowtoinstalltheComposepluginonLinuxfromthecommandline.ToinstalltheComposepluginonLinux,youcaneither:NoteTheseinstructionsassumeyoualreadyhaveDockerEngineandDockerCLIinstalledandnow...
Important
Dockers documentation refers to and describes Compose V2 functionality.
Effective July 2023, Compose V1 stopped receiving updates and is no longer in new Docker Desktop releases. Compose V2 has replaced it and is now integrated into all current Docker Desktop versions. For more information, see Migrate to Compose V2[1].
On this page you can find instructions on how to install the Compose plugin on Linux from the command line.
To install the Compose plugin on Linux, you can either:
Note
These instructions assume you already have Docker Engine and Docker CLI installed and now want to install the Compose plugin.For Compose standalone, see Install Compose Standalone[2].
Set up the repository. Find distro-specific instructions in:
Ubuntu[3] | CentOS[4] | Debian[5] | Raspberry Pi OS[6] | Fedora[7] | RHEL[8] | SLES[9].
Update the package index, and install the latest version of Docker Compose:
For Ubuntu and Debian, run:...