×

Ubuntu arm64 架构安装 docker-compose 的一种替换方案:

HackerNews 2020-12-01 views:
摘要

正在生成中……

 

couldn't get either cross or direct build working with this Dockerfile...but I discovered a somewhat obvious alternative package is available via pip!
https://pypi.org/project/docker-compose/

You need to this on your arm64 box obviously. On mine I had to install these additional dev libraries below (you maybe be missing others like build-essential if you never have complied any C code before). I'm running python 3.6 by default on that box.

sudo apt-get install libffi-dev python3-dev libssl-dev

then

pip install docker-compose
(or pip3 is pip doesn't point to pip3)

little slow to compile on the board itself but...TADA

Easily upgradable in future with --upgrade