小编Uri*_*Uri的帖子

Github Actions 在 ARM64 上构建 Docker 映像 (macos-latest-xlarge)

创建了一个 github 操作,用于为arm64平台构建docker镜像以快速构建它(无模拟)我使用macos-latest-xlargearm64机器

github操作代码示例如下:

name: Mac OS Issue
on:
  workflow_dispatch:

jobs:
  macos_issue:
    name: Check Issue
    runs-on: macos-latest-xlarge
    steps:
      - name: Check Issue
        id: check_issue
        run: |
          set +e
          brew install docker docker-buildx
          docker --version
          echo "FROM ubuntu:latest" > Dockerfile
          docker build --no-cache -t test .
Run Code Online (Sandbox Code Playgroud)

运行时失败并出现以下错误

ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Run Code Online (Sandbox Code Playgroud)

我尝试使用 macos-latest 进行模拟,但速度非常慢。所以一定是arm64机器

macos github docker dockerfile github-actions

8
推荐指数
1
解决办法
456
查看次数

标签 统计

docker ×1

dockerfile ×1

github ×1

github-actions ×1

macos ×1