Warning: You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act

huangapple go评论73阅读模式
英文:

Warning: You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act

问题

我正在尝试在本地设置nektos/act,以便测试我的GitHub工作流。当我运行act -l时,收到以下警告信息。

⚠ 您正在使用苹果 M1 芯片,并且未指定容器架构,可能在运行 act 时会遇到问题。如果遇到问题,请尝试以'--container-architecture linux/amd64'参数运行。⚠

您知道如何以及如何消除此警告吗?

不确定是否正确,但似乎我需要在 Docker 中配置一些内容?

英文:

I'm trying to setup nektos/act locally so I can test my github workflows. When I run act -l I'm receving the follow working.

> ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠

Do you know how can why and how I can get rid of this warning?

Not sure if this is true, but it seems that I need to configure something in docker?

答案1

得分: 1

--container-architecture linux/amd64 and it should be fine.
act --container-architecture linux/amd64 -j e2e-test

英文:

just add --container-architecture linux/amd64 and it should be fine.

> Blockquote act --container-architecture linux/amd64 -j e2e-test

答案2

得分: 0

act --container-architecture linux/arm64

虽然不是必需的:
"If not specified, will use host default architecture. Requires Docker server API Version 1.41+. Ignored on earlier Docker server platforms."

英文:

Run it with linux/arm64 (fitting to your processor) to skip the warning:

act --container-architecture linux/arm64

Though it is not necessary:
"If not specified, will use host default architecture. Requires Docker server API Version 1.41+. Ignored on earlier Docker server platforms."

huangapple
  • 本文由 发表于 2023年2月13日 22:42:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/75437365.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定