docker compose

来源:互联网 发布:智能电视看美剧软件 编辑:程序博客网 时间:2024/05/18 17:03

Install Docker Compose

原文:https://docs.docker.com/compose/install/

Install Compose on Linux systems

On Linux, you can download the Docker Compose binary from theComposerepository release page on GitHub. Follow the instructions from the link, which involverunning thecurl command in your terminal to download the binaries. These stepby step instructions are also included below.

  1. Run this command to download the latest version of Docker Compose:

    sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

    Use the latest Compose release number in the download command.

    The above command is an example, and it may become out-of-date. To ensure you have the latest version, check theCompose repository release page on GitHub.

    If you have problems installing with curl, seeAlternative Install Options.

  2. Apply executable permissions to the binary:

    sudo chmod +x /usr/local/bin/docker-compose
  3. Optionally, install command completion for thebash and zsh shell.

  4. Test the installation.

    $ docker-compose --versiondocker-compose version 1.16.1, build 1719ceb


原创粉丝点击