Files
docker-docs/compose/install/standalone.md
Milas Bowman a62805e3eb Compose v2 guide [ENGDOCS-1319] (#17209)
* initial content

* edits

* fix links

* compose: bunch of changes/additions around migration

* Apply suggestions from code review

Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>

* review feedback & link fixes

* fix another link

* update TOC page title to match

* move redirect to migrate page

* update v1 eol blurb

* fix eol warning style

---------

Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>
2023-05-10 08:42:35 +01:00

2.7 KiB

title, description, keywords, toc_max, redirect_from
title description keywords toc_max redirect_from
Install Compose standalone How to install Docker Compose - Other Scenarios compose, orchestration, install, installation, docker, documentation 3
/compose/install/other

{% include compose-eol.md %}

On this page you can find instructions on how to install Compose standalone on Linux or Windows Server, from the command line.

On Linux

Compose standalone

Note that Compose standalone uses the -compose syntax instead of the current standard syntax compose.
For example type docker-compose up when using Compose standalone, instead of docker compose up.

  1. To download and install Compose standalone, run:
$ curl -SL https://github.com/docker/compose/releases/download/{{site.compose_version}}/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
  1. Apply executable permissions to the standalone binary in the target path for the installation.
  2. Test and execute compose commands using 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

On Windows Server

Follow these instructions if you are running the Docker daemon and client directly on Microsoft Windows Server and want to install Docker Compose.

  1. Run PowerShell as an administrator. When asked if you want to allow this app to make changes to your device, click Yes in order to proceed with the installation.

  2. GitHub now requires TLS1.2. In PowerShell, run the following:

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    
  3. Run the following command to download the latest release of Compose ({{site.compose_version}}):

     Start-BitsTransfer -Source "https://github.com/docker/compose/releases/download/{{site.compose_version}}/docker-compose-windows-x86_64.exe" -Destination $Env:ProgramFiles\Docker\docker-compose.exe
    

    Note

    On Windows Server 2019 you can add the Compose executable to $Env:ProgramFiles\Docker. Because this directory is registered in the system PATH, you can run the docker-compose --version command on the subsequent step with no additional configuration.

    To install a different version of Compose, substitute {{site.compose_version}} with the version of Compose you want to use.

  4. Test the installation.

    $ docker-compose.exe version
    Docker Compose version {{site.compose_version}}