英文:
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."
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论