Docker 23 版本已经正式发行一段时间,龙芯也更新了 Golang 版本,加入了 buildmode=pie 支持,新版本的构建已经变得非常简单。
仓库地址:
等待合并的 PR:
# docker binaries
$ wget https://github.com/wojiushixiaobai/docker-ce-binaries-loongarch64/releases/download/v27.2.1/docker-27.2.1.tgz
$ tar -xf docker-27.2.1.tgz
$ cp docker/* /usr/local/bin/
# systemd
$ wget https://github.com/loong64/docker-ce-packaging/raw/refs/heads/main/docker.service -O /etc/systemd/system/docker.service
# 启动 docker
systemctl start docker
$ mkdir -p /usr/libexec/docker/cli-plugins
# docker-compose
$ wget -O /usr/libexec/docker/cli-plugins/docker-compose https://github.com/wojiushixiaobai/compose-loongarch64/releases/download/v2.29.2/docker-compose-linux-loongarch64
$ chmod +x /usr/libexec/docker/cli-plugins/docker-compose
$ docker compose version
Docker Compose version v2.29.2
# buildx
$ wget -O /usr/libexec/docker/cli-plugins/docker-buildx https://github.com/wojiushixiaobai/buildx-loongarch64/releases/download/v0.16.1/buildx-v0.16.1-linux-loongarch64
$ chmod +x /usr/libexec/docker/cli-plugins/docker-buildx
$ docker buildx version
github.com/docker/buildx v0.16.1