first commit
This commit is contained in:
22
Cards/Computer Science/OpenWRT 安装 Docker Compose.md
Normal file
22
Cards/Computer Science/OpenWRT 安装 Docker Compose.md
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
Aliases:
|
||||
Created: 2023-07-08 04:07:07
|
||||
Modified: 2023-07-27 15:00:40
|
||||
Title: OpenWrt 安装 Docker Compose
|
||||
Tags: OpenWrt
|
||||
---
|
||||
up::[[Atlas/Card|Card]]
|
||||
|
||||
# 解决方案
|
||||
|
||||
通过 SSH 连接上 OpenWRT 后,在命令行内依次输入以下代码即可
|
||||
|
||||
```linux
|
||||
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
|
||||
mkdir -p $DOCKER_CONFIG/cli-plugins
|
||||
curl -SL https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
|
||||
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
|
||||
docker compose version
|
||||
```
|
||||
|
||||
第三行命令中的 docker 可以根据官方 GitHub 中的 releases 自行选择其它版本
|
||||
Reference in New Issue
Block a user