[小技巧] synology 群晖开启docker-compose

date
Mar 11, 2023
slug
tip-synology-docker-composer
status
Published
summary
小技巧 万能的群晖任务计划
tags
tip
type
Post
URL

Problem & Summary

    Solution

    # ssh over to qh
    ssh xxx@10.13.0.18 -p xxxx
    # change to root
    sudo -i 
    
    # check version at https://github.com/docker/compose/releases
    ARCH=$(uname -m) && [[ "${ARCH}" == "armv7l" ]] && ARCH="armv7"
    https_proxy=http://127.0.0.1:15004 http_proxy=http://127.0.0.1:15004 all_proxy=socks5://127.0.0.1:15004 curl -sSL --fail "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-${ARCH}" -o /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose
    ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
    mkdir -p /usr/lib/docker/cli-plugins
    ln -s /usr/local/bin/docker-compose /usr/lib/docker/cli-plugins/docker-compose
    docker-compose --version
    docker compose version

    使用我们万能的群晖任务计划

    notion image
     

    © Ying Bun 2021 - 2024