首页 > 其他分享 >macOS darwin/amd64 vs Darwin/x86_64 All In One

macOS darwin/amd64 vs Darwin/x86_64 All In One

时间:2023-01-06 06:55:05浏览次数:60  
标签:macOS compose amd64 https xgqfrms docker darwin com

macOS darwin/amd64 vs Darwin/x86_64 All In One

uname

# uname
$ uname
Darwin
$ uname -a
Darwin xgqfrms-mm.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64

$ go version
go version go1.19.4 darwin/amd64

??? darwin/amd64 === Darwin/x86_64

image

image

https://go.dev/

https://go.dev/dl/

https://dl.google.com/go/go1.19.4.darwin-amd64.pkg

image

docker-compose


# $ curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-darwin-aarch64 >  /usr/local/bin/docker-compose ❌
# $ curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-darwin-x86_64 > /usr/local/bin/docker-compose ✅

# 动态生成对应的系统架构的下载版本 URL
$ curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose

$ ls -l /usr/local/bin/docker-compose

$ chmod a+x /usr/local/bin/docker-compose

$ docker-compose --version

(

标签:macOS,compose,amd64,https,xgqfrms,docker,darwin,com
From: https://www.cnblogs.com/xgqfrms/p/17029341.html

相关文章