This page contains instructions on how to install the Docker Compose plugin on Linux from the command line.
To install the Docker Compose plugin on Linux, you can either:
NoteThese instructions assume you already have Docker Engine and Docker CLI installed and now want to install the Docker Compose plugin.
Install using the repository
Set up the repository. Find distribution-specific instructions in:
Update the package index, and install the latest version of Docker Compose:
For Ubuntu and Debian, run:
For RPM-based distributions, run:
Verify that Docker Compose is installed correctly by checking the version.
Update Docker Compose
To update the Docker Compose plugin, run the following commands:
For Ubuntu and Debian, run:
For RPM-based distributions, run:
Install the plugin manually
WarningManual installations don’t auto-update. For ease of maintenance, use the Docker repository method.
To download and install the Docker Compose CLI plugin, run:
This command downloads and installs the latest release of Docker Compose for the active user under
$HOMEdirectory.To install:
- Docker Compose for all users on your system, replace
~/.docker/cli-pluginswith/usr/local/lib/docker/cli-plugins. - A different version of Compose, substitute
v5.0.1with the version of Compose you want to use. - For a different architecture, substitute
x86_64with the architecture you want.
- Docker Compose for all users on your system, replace
Apply executable permissions to the binary:
or, if you chose to install Compose for all users:
Test the installation.