vault backup: 2024-10-06 16:42:30
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
aliases:
|
|
||||||
atlas: "[[Atlas/Card|Card]]"
|
|
||||||
created: 2023-07-08 04:07:07
|
|
||||||
modified: 2023-09-19 17:39:45
|
|
||||||
tags:
|
|
||||||
- OpenWrt
|
|
||||||
title: OpenWrt 安装 Docker Compose
|
|
||||||
---
|
|
||||||
|
|
||||||
# 解决方案
|
|
||||||
|
|
||||||
通过 SSH 连接上 OpenWRT 后,在命令行内依次输入以下代码即可
|
|
||||||
|
|
||||||
```shell
|
|
||||||
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 自行选择其它版本
|
|
||||||
@@ -2,11 +2,25 @@
|
|||||||
aliases:
|
aliases:
|
||||||
atlas: "[[Atlas/Card|Card]]"
|
atlas: "[[Atlas/Card|Card]]"
|
||||||
created: 2024-03-06 18:50:29
|
created: 2024-03-06 18:50:29
|
||||||
modified: 2024-03-11 22:01:14
|
modified: 2024-10-06 16:37:27
|
||||||
tags:
|
tags:
|
||||||
title: OpenWrt Docker
|
title: OpenWrt Docker
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# OpenWRT 安装 Docker Compose
|
||||||
|
|
||||||
|
通过 SSH 连接上 OpenWRT 后,在命令行内依次输入以下代码即可
|
||||||
|
|
||||||
|
```shell
|
||||||
|
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 自行选择其它版本
|
||||||
|
|
||||||
# Protainer
|
# Protainer
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
Reference in New Issue
Block a user