Docker - Install Docker Compose

发布时间 2023-09-25 10:58:04作者: ZhangZhihuiAAA

Install using the repository

  1. Set up the repository. Find distro-specific instructions in:

    Ubuntu | CentOS | Debian | Raspberry Pi OS | Fedora | RHEL | SLES.

  2. Update the package index, and install the latest version of Docker Compose:

    • For Ubuntu and Debian, run:

      $ sudo apt-get update
      $ sudo apt-get install docker-compose-plugin
  3. Verify that Docker Compose is installed correctly by checking the version.

    $ docker compose version
    Docker Compose version vN.N.N