找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4347|回复: 12

[N1盒子] armbian 安装docker-compose

[复制链接]
本帖最后由 Randell 于 2020-12-13 15:11 编辑

前言:docker-compose官方似乎默认只支持x86,而arm设备安装常常遇到困难。参考https://github.com/docker/compose/releases
发现dockerhub上有由linuxserver发布的docker-compose容器
参考https://hub.docker.com/r/linuxserver/docker-compose
推荐使用这个,已修改安装方式为此方式。

以下是本人测试成功的安装方式:

###首先建议你安装好docker。不会安装的可以参考https://www.right.com.cn/forum/thread-4051765-1-1.html

##用 docker -v 查看自己docker是否安装,可以看到当前的版本是19.03.13。
  1. root@vplus:~# docker -v
  2. Docker version 19.03.13, build 4484c46
复制代码
##开始安装docker-compose
  1. curl -L --fail https://raw.githubusercontent.com/linuxserver/docker-docker-compose/master/run.sh -o /usr/local/bin/docker-compose
复制代码
  1. chmod +x /usr/local/bin/docker-compose
复制代码
  1. docker-compose
复制代码
##安装成功,查看当前版本为1.27.4
  1. root@vplus:~# docker-compose -v
  2. docker-compose version 1.27.4, build unknown
复制代码
最后附上docker-compose常见命令
  1. docker-compose up -d 启动;
  2. docker-compose logs 打印日志;
  3. docker-compose pull 更新镜像;
  4. docker-compose stop 停止容器;
  5. docker-compose restart 重启容器;
  6. docker-compose down 停止并删除容器;
复制代码







我的恩山、我的无线 The best wifi forum is right here.
这个docker-composer有什么用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢楼主分享docker-composer安装
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

尝试了很多armbian安装docker-compose,楼主这个相对友好点,不过安装最后
sh: 0: Can't open /usr/local/bin/docker-compose-entrypoint.sh
报这个错误,没办法继续了。安装失败,版本号自然是查不到。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

装不上去      -ash: docker-compose: not found
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

执行curl -L 出现Unknown SSL protocol error in connection to raw.githubusercontent.com:443,这个怎么解决
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

  1. #!/bin/bash
  2. apt-get update && apt-get upgrade -y
  3. apt-get autoclean
  4. apt-get clean
  5. apt-get install python3-dev -y && apt-get install python3-pip -y && apt-get install python3-venv -y
  6. apt-get install libffi-dev make -y
  7. pip3 install wheel
  8. pip3 install --upgrade setuptools
  9. pip3 install docker-compose
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


简单一点的,直接 apt install docker-compose
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个需要有打到美帝要不然肯定连不上的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 yhwhut 于 2021-10-2 16:35 编辑

我玩客云设备不用看了,arm32的根本不支持
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

请教下 为什么要用docker-compose啊?跟 平常的docker run 镜像啥的有区别?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

curl -L --fail https://raw.githubusercontent.co ... mpose/master/run.sh -o /usr/local/bin/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大佬 你这个方法 必须打倒美帝才行啊 不然很多URL都不能访问 比如https://raw.githubusercontent.co ... mpose/master/run.sh
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 20:31

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表