Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running docker actions locally with ACT cannot connect to daemon #250

Closed
GROwen opened this issue Feb 6, 2024 · 5 comments
Closed

Running docker actions locally with ACT cannot connect to daemon #250

GROwen opened this issue Feb 6, 2024 · 5 comments

Comments

@GROwen
Copy link

GROwen commented Feb 6, 2024

Summary

I run act locally to develop and debug GitHub Actions workflows that build and deploy images.

This has worked well in the past but I’m now encountering an issue with docker actions unable to connect to the docker daemon.

I first encountered this issue with the docker/setup-qemu-action but based on this comment I thought I could work around it by only using the docker/setup-buildx-action and setting the docker endpoint to unix://$HOME/.colima/default/docker.sock (derived from docker context ls) but that didn’t affect a change.

Setup

Apple M1 Mac OS 14.2.1
colima - https://github.com/abiosoft/colima
act - https://github.com/nektos/act

Steps to reproduce

  • set context to Colima
    docker context use colima
  • set DOCKER_HOST
    export DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock”
colima version info
❯ colima version
colima version 0.6.8
git commit: 9b0809d0ed9ad3ff1e57c405f27324e6298ca04f

runtime: docker
arch: aarch64
client: v25.0.2
server: v24.0.9
act version info
❯ act --bug-report
act version:            0.2.59
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 8
Docker host:            unix:///Users/dpc-g/.colima/default/docker.sock
Sockets found:
	$HOME/.colima/docker.sock
Config files:
	/Users/dpc-g/.actrc:
		-P ubuntu-latest=catthehacker/ubuntu:full-latest
		-P ubuntu-latest=catthehacker/ubuntu:full-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:full-18.04
Build info:
	Go version:            go1.21.6
	Module path:           command-line-arguments
	Main version:
	Main path:
	Main checksum:
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.59
		DefaultGODEBUG:       panicnil=1
		CGO_ENABLED:          1
		CGO_CFLAGS:
		CGO_CPPFLAGS:
		CGO_CXXFLAGS:
		CGO_LDFLAGS:
		GOARCH:               arm64
		GOOS:                 darwin
Docker Engine:
	Engine version:        24.0.9
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Ubuntu 23.10
	OS type:               linux
	OS version:            23.10
	OS arch:               aarch64
	OS kernel:             6.5.0-15-generic
	OS CPU:                4
	OS memory:             11937 MB
	Security options:
		name=apparmor
		name=seccomp,profile=builtin
		name=cgroupns
build-image-colima workflow
name: build-images-colima
run-name: Build images locally with Colima and ACT
on:
  pull_request:
    types:
      - closed
      - opened
      - synchronize
  workflow_dispatch:

env:
  REGISTRY: ghcr.io
jobs:
  buildx:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        images: ${{ fromJson(vars.IMAGES) }}
    steps:
      # - name: Set up QEMU
      #   uses: docker/setup-qemu-action@v3

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
        with:
          endpoint: unix:///Users/dpc-g/.colima/default/docker.sock

      - uses: actions/checkout@v3

      - name: Login to registry ${{ env.REGISTRY }}
        uses: docker/[email protected]
        with:
          registry: ${{ env.REGISTRY }}
          username: ${{ secrets.REGISTRY_USER }}
          password: ${{ secrets.REGISTRY_TOKEN }}

      - name: Extract Docker metadata
        id: meta
        uses: docker/[email protected]
        with:
          images: |
            ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images }}

      - name: Build and push the images
        uses: docker/[email protected]
        with:
          push: true
          files: |
            ${{ steps.meta.outputs.bake-file }}
The act command (verbose output)

act pull_request -W .github/workflows/build-images-colima.yml --secret-file /tmp/sec-file --var IMAGES='["node"]' --container-architecture linux/amd64 -v

act output
❯ act pull_request -W .github/workflows/build-images-colima.yml --secret-file /tmp/sec-file --var IMAGES='["node"]' --container-architecture linux/amd64 -v
DEBU[0000] Loading environment from /Users/dpc-g/Projects/bay/.env
DEBU[0000] Loading action inputs from /Users/dpc-g/Projects/bay/.input
DEBU[0000] Loading secrets from /tmp/sec-file
DEBU[0000] Loading vars from /Users/dpc-g/Projects/bay/.vars
DEBU[0000] Evaluated matrix inclusions: map[]
DEBU[0000] Loading workflow '/Users/dpc-g/Projects/bay/.github/workflows/build-images-colima.yml'
DEBU[0000] Reading workflow '/Users/dpc-g/Projects/bay/.github/workflows/build-images-colima.yml'
DEBU[0000] Using first passed in arguments event for filtering: pull_request
DEBU[0000] Preparing plan for a event: pull_request
DEBU[0000] Using first passed in arguments event: pull_request
DEBU[0000] Planning jobs for event: pull_request
DEBU[0000] Conditional GET for notices etag=faacf505-0126-427a-bd9a-1316148597a9
DEBU[0000] gc: 2024-02-06 12:59:54.14689 +1100 AEDT m=+0.016085376  module=artifactcache
DEBU[0000] Plan Stages: [0x140000b4f60]
DEBU[0000] Stages Runs: [buildx]
DEBU[0000] Job.Name: buildx
DEBU[0000] Job.RawNeeds: {0 0    <nil> []    0 0}
DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    15 14}
DEBU[0000] Job.Env: {0 0    <nil> []    0 0}
DEBU[0000] Job.If: {0 0  success()  <nil> []    0 0}
DEBU[0000] Job.Steps: Set up Docker Buildx
DEBU[0000] Job.Steps: actions/checkout@v3
DEBU[0000] Job.Steps: Login to registry ${{ env.REGISTRY }}
DEBU[0000] Job.Steps: Extract Docker metadata
DEBU[0000] Job.Steps: Build and push the images
DEBU[0000] Job.TimeoutMinutes:
DEBU[0000] Job.Services: map[]
DEBU[0000] Job.Strategy: &{false 0   {4 0 !!map   <nil> [0x14000360140 0x140003601e0]    18 9}}
DEBU[0000] Job.RawContainer: {0 0    <nil> []    0 0}
DEBU[0000] Job.Defaults.Run.Shell:
DEBU[0000] Job.Defaults.Run.WorkingDirectory:
DEBU[0000] Job.Outputs: map[]
DEBU[0000] Job.Uses:
DEBU[0000] Job.With: map[]
DEBU[0000] Job.Result:
DEBU[0000] Job.Strategy.FailFast: false
DEBU[0000] Job.Strategy.MaxParallel: 0
DEBU[0000] Job.Strategy.FailFastString:
DEBU[0000] Job.Strategy.MaxParallelString:
DEBU[0000] Job.Strategy.RawMatrix: {4 0 !!map   <nil> [0x14000360140 0x140003601e0]    18 9}
DEBU[0000] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
DEBU[0000] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
DEBU[0000] evaluating expression '${{ fromJson(vars.IMAGES) }}'
DEBU[0000] expression '${{ fromJson(vars.IMAGES) }}' evaluated to '[%!t(string=node)]'
DEBU[0000]
DEBU[0000] Job Matrices: [map[images:node]]
DEBU[0000] Runner Matrices: map[]
DEBU[0000] Final matrix after applying user inclusions '[map[images:node]]'
DEBU[0000] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
DEBU[0000] Detected CPUs: 8
[build-images-colima/buildx] [DEBUG] evaluating expression 'success()'
[build-images-colima/buildx] [DEBUG] expression 'success()' evaluated to 'true'
[build-images-colima/buildx] 🚀  Start image=catthehacker/ubuntu:full-20.04
INFO[0000] Parallel tasks (0) below minimum, setting to 1
[build-images-colima/buildx]   🐳  docker pull image=catthehacker/ubuntu:full-20.04 platform=linux/amd64 username= forcePull=true
[build-images-colima/buildx] [DEBUG]   🐳  docker pull catthehacker/ubuntu:full-20.04
[build-images-colima/buildx] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:full-20.04' (linux/amd64)
DEBU[0000] Saving notices etag=faacf505-0126-427a-bd9a-1316148597a9
DEBU[0000] No new notices
[build-images-colima/buildx] [DEBUG] Pulling from catthehacker/ubuntu :: full-20.04
[build-images-colima/buildx] [DEBUG] Digest: sha256:46cbb685671a6bcf254bbbb1311435501cb5badfec1414264412e62484db8d9d ::
[build-images-colima/buildx] [DEBUG] Status: Image is up to date for catthehacker/ubuntu:full-20.04 ::
[build-images-colima/buildx] [DEBUG] Removed container: 8b35c3dc77a18abf07d4ecf58789b5dcdaab23bcc6ced2f2ce67c00b4ef9e1c7
[build-images-colima/buildx] [DEBUG]   🐳  docker volume rm act-build-images-colima-buildx-d23b30e116f06547162bda1334e964e7603e907ebb5ff4708c590bcfd43894f6
[build-images-colima/buildx] [DEBUG]   🐳  docker volume rm act-build-images-colima-buildx-d23b30e116f06547162bda1334e964e7603e907ebb5ff4708c590bcfd43894f6-env
INFO[0003] Parallel tasks (0) below minimum, setting to 1
[build-images-colima/buildx]   🐳  docker create image=catthehacker/ubuntu:full-20.04 platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[build-images-colima/buildx] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=ARM64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:full-20.04 Volumes:map[] WorkingDir:/Users/dpc-g/Projects/bay Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[build-images-colima/buildx] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-build-images-colima-buildx-d23b30e116f06547162bda1334e964e7603e907ebb5ff4708c590bcfd43894f6-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-build-images-colima-buildx-d23b30e116f06547162bda1334e964e7603e907ebb5ff4708c590bcfd43894f6 Target:/Users/dpc-g/Projects/bay ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[build-images-colima/buildx] [DEBUG] input.NetworkAliases ==> [buildx]
[build-images-colima/buildx] [DEBUG] Created container name=act-build-images-colima-buildx-d23b30e116f06547162bda1334e964e7603e907ebb5ff4708c590bcfd43894f6 id=bcbae111d1c5db6075303d800adbee01aa61d79b86080cea69b83232427dda53 from image catthehacker/ubuntu:full-20.04 (platform: linux/amd64)
[build-images-colima/buildx] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=ARM64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[build-images-colima/buildx]   🐳  docker run image=catthehacker/ubuntu:full-20.04 platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[build-images-colima/buildx] [DEBUG] Starting container: bcbae111d1c5db6075303d800adbee01aa61d79b86080cea69b83232427dda53
[build-images-colima/buildx] [DEBUG] Started container: bcbae111d1c5db6075303d800adbee01aa61d79b86080cea69b83232427dda53
[build-images-colima/buildx]   🐳  docker exec cmd=[chown -R 1001:127 /Users/dpc-g/Projects/bay] user=0 workdir=
[build-images-colima/buildx] [DEBUG] Exec command '[chown -R 1001:127 /Users/dpc-g/Projects/bay]'
[build-images-colima/buildx] [DEBUG] Working directory '/Users/dpc-g/Projects/bay'
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/event.json len:2
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[build-images-colima/buildx] [DEBUG] Extracting content to '/var/run/act/'
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx]   ☁  git clone 'https://github.com/docker/setup-buildx-action' # ref=v3
[build-images-colima/buildx] [DEBUG]   cloning https://github.com/docker/setup-buildx-action to /Users/dpc-g/.cache/act/docker-setup-buildx-action@v3
[build-images-colima/buildx] [DEBUG] Unable to pull refs/heads/v3: worktree contains unstaged changes
[build-images-colima/buildx] [DEBUG] Cloned https://github.com/docker/setup-buildx-action to /Users/dpc-g/.cache/act/docker-setup-buildx-action@v3
[build-images-colima/buildx] [DEBUG] Checked out v3
[build-images-colima/buildx] [DEBUG] Read action &{Docker Setup Buildx docker Set up Docker Buildx map[append:{Append additional nodes to the builder false } buildkitd-flags:{Flags for buildkitd daemon false --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host} cleanup:{Cleanup temp files and remove builder at the end of a job false true} config:{BuildKit config file false } config-inline:{Inline BuildKit config false } driver:{Sets the builder driver to be used false docker-container} driver-opts:{List of additional driver-specific options. (eg. image=moby/buildkit:master) false } endpoint:{Optional address for docker socket or context from `docker context ls` false } install:{Sets up docker build command as an alias to docker buildx build false false} platforms:{Fixed platforms for current node. If not empty, values take priority over the detected ones false } use:{Switch to this builder instance false true} version:{Buildx version. (eg. v0.3.0) false }] map[driver:{Builder driver } endpoint:{Builder node endpoint (deprecated, use nodes output instead) } flags:{Builder node flags (deprecated, use nodes output instead) } name:{Builder name } nodes:{Builder nodes metadata } platforms:{Builder node platforms (preferred or available) } status:{Builder node status (deprecated, use nodes output instead) }] {node20 map[] dist/index.js  always() dist/index.js always()   [] []} {blue anchor}} from 'Unknown'
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Skipping local actions/checkout because workdir was already copied
[build-images-colima/buildx] [DEBUG] skip pre step for 'actions/checkout@v3': no action model available
[build-images-colima/buildx] [DEBUG] expression 'Login to registry ${{ env.REGISTRY }}' rewritten to 'format('Login to registry {0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('Login to registry {0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] expression 'format('Login to registry {0}', env.REGISTRY)' evaluated to '%!t(string=Login to registry ghcr.io)'
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx]   ☁  git clone 'https://github.com/docker/login-action' # ref=v2.2.0
[build-images-colima/buildx] [DEBUG]   cloning https://github.com/docker/login-action to /Users/dpc-g/.cache/act/[email protected]
[build-images-colima/buildx] [DEBUG] Cloned https://github.com/docker/login-action to /Users/dpc-g/.cache/act/[email protected]
[build-images-colima/buildx] [DEBUG] Checked out v2.2.0
[build-images-colima/buildx] [DEBUG] Read action &{Docker Login docker GitHub Action to login against a Docker registry map[ecr:{Specifies whether the given registry is ECR (auto, true or false) false auto} logout:{Log out from the Docker registry at the end of a job false true} password:{Password or personal access token used to log against the Docker registry false } registry:{Server address of Docker registry. If not set then will default to Docker Hub false } username:{Username used to log against the Docker registry false }] map[] {node16 map[] dist/index.js  always() dist/index.js always()   [] []} {blue anchor}} from 'Unknown'
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx]   ☁  git clone 'https://github.com/docker/metadata-action' # ref=v4.6.0
[build-images-colima/buildx] [DEBUG]   cloning https://github.com/docker/metadata-action to /Users/dpc-g/.cache/act/[email protected]
[build-images-colima/buildx] [DEBUG] Cloned https://github.com/docker/metadata-action to /Users/dpc-g/.cache/act/[email protected]
[build-images-colima/buildx] [DEBUG] Checked out v4.6.0
[build-images-colima/buildx] [DEBUG] Read action &{Docker Metadata action docker GitHub Action to extract metadata (tags, labels) for Docker map[bake-target:{Bake target name (default docker-metadata-action) false } context:{Where to get context data. Allowed options are "workflow"  (default), "git". true workflow} flavor:{Flavors to apply false } github-token:{GitHub Token as provided by secrets true ${{ github.token }}} images:{List of Docker images to use as base name for tags true } labels:{List of custom labels false } sep-labels:{Separator to use for labels output (default \n) false } sep-tags:{Separator to use for tags output (default \n) false } tags:{List of tags as key-value pair attributes false }] map[bake-file:{Bake definiton file } json:{JSON output of tags and labels } labels:{Generated Docker labels } tags:{Generated Docker tags } version:{Generated Docker image version }] {node16 map[] dist/index.js  always()  always()   [] []} {blue anchor}} from 'Unknown'
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx]   ☁  git clone 'https://github.com/docker/bake-action' # ref=v3.1.0
[build-images-colima/buildx] [DEBUG]   cloning https://github.com/docker/bake-action to /Users/dpc-g/.cache/act/[email protected]
[build-images-colima/buildx] [DEBUG] Cloned https://github.com/docker/bake-action to /Users/dpc-g/.cache/act/[email protected]
[build-images-colima/buildx] [DEBUG] Checked out v3.1.0
[build-images-colima/buildx] [DEBUG] Read action &{Docker Buildx Bake docker GitHub Action to use Docker Buildx Bake as a high-level build command map[builder:{Builder instance false } files:{List of bake definition files true } load:{Load is a shorthand for --set=*.output=type=docker false false} no-cache:{Do not use cache when building the image false false} provenance:{Provenance is a shorthand for --set=*.attest=type=provenance false } pull:{Always attempt to pull a newer version of the image false false} push:{Push is a shorthand for --set=*.output=type=registry false false} sbom:{SBOM is a shorthand for --set=*.attest=type=sbom false } set:{List of targets values to override (eg. targetpattern.key=value) false } source:{Remote bake definition to build from false } targets:{List of bake targets false } workdir:{Working directory of bake execution false .}] map[metadata:{Build result metadata }] {node16 map[] dist/index.js  always()  always()   [] []} {blue anchor}} from 'Unknown'
[build-images-colima/buildx] 🧪  Matrix: map[images:node]
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.117:52193/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v3 GITHUB_ACTION_REPOSITORY:docker/setup-buildx-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:buildx GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:dpc-sdp/bay GITHUB_REPOSITORY_OWNER:dpc-sdp GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:65f584fb907fb6db2e9033d1ca877a4075d9573a GITHUB_WORKFLOW:build-images-colima GITHUB_WORKSPACE:/Users/dpc-g/Projects/bay INPUT_ENDPOINT:unix:///Users/dpc-g/.colima/docker.sock ImageOS:ubuntu20 REGISTRY:ghcr.io RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] evaluating expression ''
[build-images-colima/buildx] [DEBUG] expression '' evaluated to 'true'
[build-images-colima/buildx] ⭐ Run Main Set up Docker Buildx
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[build-images-colima/buildx] [DEBUG] Extracting content to '/var/run/act'
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] About to run action &{Docker Setup Buildx docker Set up Docker Buildx map[append:{Append additional nodes to the builder false } buildkitd-flags:{Flags for buildkitd daemon false --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host} cleanup:{Cleanup temp files and remove builder at the end of a job false true} config:{BuildKit config file false } config-inline:{Inline BuildKit config false } driver:{Sets the builder driver to be used false docker-container} driver-opts:{List of additional driver-specific options. (eg. image=moby/buildkit:master) false } endpoint:{Optional address for docker socket or context from `docker context ls` false } install:{Sets up docker build command as an alias to docker buildx build false false} platforms:{Fixed platforms for current node. If not empty, values take priority over the detected ones false } use:{Switch to this builder instance false true} version:{Buildx version. (eg. v0.3.0) false }] map[driver:{Builder driver } endpoint:{Builder node endpoint (deprecated, use nodes output instead) } flags:{Builder node flags (deprecated, use nodes output instead) } name:{Builder name } nodes:{Builder nodes metadata } platforms:{Builder node platforms (preferred or available) } status:{Builder node status (deprecated, use nodes output instead) }] {node20 map[] dist/index.js  always() dist/index.js always()   [] []} {blue anchor}}
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] type=remote-action actionDir=/Users/dpc-g/.cache/act/docker-setup-buildx-action@v3 actionPath= workdir=/Users/dpc-g/Projects/bay actionCacheDir=/Users/dpc-g/.cache/act actionName=docker-setup-buildx-action@v3 containerActionDir=/var/run/act/actions/docker-setup-buildx-action@v3
[build-images-colima/buildx] [DEBUG] /var/run/act/actions/docker-setup-buildx-action@v3
[build-images-colima/buildx] [DEBUG] Removing /Users/dpc-g/.cache/act/docker-setup-buildx-action@v3/.gitignore before docker cp
[build-images-colima/buildx]   🐳  docker cp src=/Users/dpc-g/.cache/act/docker-setup-buildx-action@v3/ dst=/var/run/act/actions/docker-setup-buildx-action@v3/
[build-images-colima/buildx] [DEBUG] Writing tarball /var/folders/_y/nyyv2lps2xv42_3pllhqpmpc0000gn/T/act1597125752 from /Users/dpc-g/.cache/act/docker-setup-buildx-action@v3/
[build-images-colima/buildx] [DEBUG] Stripping prefix:/Users/dpc-g/.cache/act/docker-setup-buildx-action@v3/ src:/Users/dpc-g/.cache/act/docker-setup-buildx-action@v3/
[build-images-colima/buildx] [DEBUG] Extracting content from '/var/folders/_y/nyyv2lps2xv42_3pllhqpmpc0000gn/T/act1597125752' to '/var/run/act/actions/docker-setup-buildx-action@v3/'
[build-images-colima/buildx]   🐳  docker exec cmd=[chown -R 1001:127 /var/run/act/actions/docker-setup-buildx-action@v3/] user=0 workdir=
[build-images-colima/buildx] [DEBUG] Exec command '[chown -R 1001:127 /var/run/act/actions/docker-setup-buildx-action@v3/]'
[build-images-colima/buildx] [DEBUG] Working directory '/Users/dpc-g/Projects/bay'
[build-images-colima/buildx] [DEBUG] executing remote job container: [node /var/run/act/actions/docker-setup-buildx-action@v3/dist/index.js]
[build-images-colima/buildx]   🐳  docker exec cmd=[node /var/run/act/actions/docker-setup-buildx-action@v3/dist/index.js] user= workdir=
[build-images-colima/buildx] [DEBUG] Exec command '[node /var/run/act/actions/docker-setup-buildx-action@v3/dist/index.js]'
[build-images-colima/buildx] [DEBUG] Working directory '/Users/dpc-g/Projects/bay'
[build-images-colima/buildx]   💬  ::debug::Docker.isAvailable ok: /usr/bin/docker
[build-images-colima/buildx]   💬  ::debug::Buildx.isStandalone: false
[build-images-colima/buildx]   ❓  ::group::Docker info
[build-images-colima/buildx]   💬  ::debug::Exec.exec: docker version
| [command]/usr/bin/docker version
| Client: Docker Engine - Community
|  Version:           24.0.7
|  API version:       1.43
|  Go version:        go1.20.10
|  Git commit:        afdd53b
|  Built:             Thu Oct 26 09:08:01 2023
|  OS/Arch:           linux/amd64
|  Context:           default
| permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied
| The process '/usr/bin/docker' failed with exit code 1
[build-images-colima/buildx]   ❓  ::endgroup::
[build-images-colima/buildx]   💬  ::debug::Docker.isAvailable ok: /usr/bin/docker
[build-images-colima/buildx]   💬  ::debug::Buildx.isStandalone: false
[build-images-colima/buildx]   💬  ::debug::Exec.getExecOutput: docker buildx
[build-images-colima/buildx]   💬  ::debug::Buildx.isAvailable: true
[build-images-colima/buildx]   ❓  ::group::Buildx version
[build-images-colima/buildx]   💬  ::debug::Docker.isAvailable ok: /usr/bin/docker
[build-images-colima/buildx]   💬  ::debug::Buildx.isStandalone: false
[build-images-colima/buildx]   💬  ::debug::Exec.exec: docker buildx version
| [command]/usr/bin/docker buildx version
| github.com/docker/buildx v0.12.1 30feaa1
[build-images-colima/buildx]   ❓  ::endgroup::
[build-images-colima/buildx]   ❓  ::group::Creating a new builder instance
[build-images-colima/buildx]   💬  ::debug::Docker.isAvailable ok: /usr/bin/docker
[build-images-colima/buildx]   💬  ::debug::Buildx.isStandalone: false
[build-images-colima/buildx]   💬  ::debug::Exec.getExecOutput: docker buildx version
[build-images-colima/buildx]   💬  ::debug::Buildx.versionSatisfies 0.12.1 statisfies >=0.3.0: true
[build-images-colima/buildx]   💬  ::debug::Docker.isAvailable ok: /usr/bin/docker
[build-images-colima/buildx]   💬  ::debug::Buildx.isStandalone: false
| [command]/usr/bin/docker buildx create --name builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use unix:///Users/dpc-g/.colima/docker.sock
| ERROR: failed to initialize builder builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf (builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf0): Cannot connect to the Docker daemon at unix:///Users/dpc-g/.colima/docker.sock. Is the docker daemon running?
[build-images-colima/buildx]   ❓  ::endgroup::
[build-images-colima/buildx]   ❗  ::error::The process '/usr/bin/docker' failed with exit code 1
[build-images-colima/buildx]   ❌  Failure - Main Set up Docker Buildx
[build-images-colima/buildx]   ⚙  ::set-output:: name=builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf
[build-images-colima/buildx] exitcode '1': failure
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Skipping local actions/checkout because workdir was already copied
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.117:52193/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v3 GITHUB_ACTION_REPOSITORY:actions/checkout GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:buildx GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:dpc-sdp/bay GITHUB_REPOSITORY_OWNER:dpc-sdp GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:65f584fb907fb6db2e9033d1ca877a4075d9573a GITHUB_WORKFLOW:build-images-colima GITHUB_WORKSPACE:/Users/dpc-g/Projects/bay ImageOS:ubuntu20 REGISTRY:ghcr.io RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] evaluating expression ''
[build-images-colima/buildx] [DEBUG] expression '' evaluated to 'false'
[build-images-colima/buildx] [DEBUG] Skipping step 'actions/checkout@v3' due to ''
[build-images-colima/buildx] [DEBUG] expression 'Login to registry ${{ env.REGISTRY }}' rewritten to 'format('Login to registry {0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('Login to registry {0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] expression 'format('Login to registry {0}', env.REGISTRY)' evaluated to '%!t(string=Login to registry ghcr.io)'
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] expression '${{ secrets.REGISTRY_USER }}' rewritten to 'format('{0}', secrets.REGISTRY_USER)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('{0}', secrets.REGISTRY_USER)'
[build-images-colima/buildx] [DEBUG] expression 'format('{0}', secrets.REGISTRY_USER)' evaluated to '%!t(string=)'
[build-images-colima/buildx] [DEBUG] expression '${{ secrets.REGISTRY_TOKEN }}' rewritten to 'format('{0}', secrets.REGISTRY_TOKEN)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('{0}', secrets.REGISTRY_TOKEN)'
[build-images-colima/buildx] [DEBUG] expression 'format('{0}', secrets.REGISTRY_TOKEN)' evaluated to '%!t(string=)'
[build-images-colima/buildx] [DEBUG] expression '${{ env.REGISTRY }}' rewritten to 'format('{0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('{0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] expression 'format('{0}', env.REGISTRY)' evaluated to '%!t(string=ghcr.io)'
[build-images-colima/buildx] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.117:52193/ CI:true GITHUB_ACTION:2 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v2.2.0 GITHUB_ACTION_REPOSITORY:docker/login-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:buildx GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:dpc-sdp/bay GITHUB_REPOSITORY_OWNER:dpc-sdp GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:65f584fb907fb6db2e9033d1ca877a4075d9573a GITHUB_WORKFLOW:build-images-colima GITHUB_WORKSPACE:/Users/dpc-g/Projects/bay INPUT_PASSWORD: INPUT_REGISTRY:ghcr.io INPUT_USERNAME: ImageOS:ubuntu20 REGISTRY:ghcr.io RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] evaluating expression ''
[build-images-colima/buildx] [DEBUG] expression '' evaluated to 'false'
[build-images-colima/buildx] [DEBUG] Skipping step 'Login to registry ${{ env.REGISTRY }}' due to ''
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] expression '${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images }}
' rewritten to 'format('{0}/{1}/{2}
', env.REGISTRY, github.repository, matrix.images)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('{0}/{1}/{2}
', env.REGISTRY, github.repository, matrix.images)'
[build-images-colima/buildx] [DEBUG] expression 'format('{0}/{1}/{2}
', env.REGISTRY, github.repository, matrix.images)' evaluated to '%!t(string=ghcr.io/dpc-sdp/bay/node
)'
[build-images-colima/buildx] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.117:52193/ CI:true GITHUB_ACTION:meta GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v4.6.0 GITHUB_ACTION_REPOSITORY:docker/metadata-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:buildx GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:dpc-sdp/bay GITHUB_REPOSITORY_OWNER:dpc-sdp GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:65f584fb907fb6db2e9033d1ca877a4075d9573a GITHUB_WORKFLOW:build-images-colima GITHUB_WORKSPACE:/Users/dpc-g/Projects/bay INPUT_IMAGES:ghcr.io/dpc-sdp/bay/node
 ImageOS:ubuntu20 REGISTRY:ghcr.io RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] evaluating expression ''
[build-images-colima/buildx] [DEBUG] expression '' evaluated to 'false'
[build-images-colima/buildx] [DEBUG] Skipping step 'Extract Docker metadata' due to ''
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] expression '${{ steps.meta.outputs.bake-file }}' rewritten to 'format('{0}', steps.meta.outputs.bake-file)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('{0}', steps.meta.outputs.bake-file)'
[build-images-colima/buildx] [DEBUG] expression 'format('{0}', steps.meta.outputs.bake-file)' evaluated to '%!t(string=)'
[build-images-colima/buildx] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.117:52193/ CI:true GITHUB_ACTION:4 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v3.1.0 GITHUB_ACTION_REPOSITORY:docker/bake-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:buildx GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:dpc-sdp/bay GITHUB_REPOSITORY_OWNER:dpc-sdp GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:65f584fb907fb6db2e9033d1ca877a4075d9573a GITHUB_WORKFLOW:build-images-colima GITHUB_WORKSPACE:/Users/dpc-g/Projects/bay INPUT_FILES: INPUT_PUSH:true ImageOS:ubuntu20 REGISTRY:ghcr.io RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] evaluating expression ''
[build-images-colima/buildx] [DEBUG] expression '' evaluated to 'false'
[build-images-colima/buildx] [DEBUG] Skipping step 'Build and push the images' due to ''
[build-images-colima/buildx] [DEBUG] skipping post step for 'Build and push the images'; main step was skipped
[build-images-colima/buildx] [DEBUG] skipping post step for 'Extract Docker metadata'; main step was skipped
[build-images-colima/buildx] [DEBUG] expression 'Login to registry ${{ env.REGISTRY }}' rewritten to 'format('Login to registry {0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] evaluating expression 'format('Login to registry {0}', env.REGISTRY)'
[build-images-colima/buildx] [DEBUG] expression 'format('Login to registry {0}', env.REGISTRY)' evaluated to '%!t(string=Login to registry ghcr.io)'
[build-images-colima/buildx] [DEBUG] skipping post step for 'Login to registry ${{ env.REGISTRY }}'; main step was skipped
[build-images-colima/buildx] [DEBUG] skipping post step for 'actions/checkout@v3'; main step was skipped
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.117:52193/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v3 GITHUB_ACTION_REPOSITORY:docker/setup-buildx-action GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:buildx GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:dpc-sdp/bay GITHUB_REPOSITORY_OWNER:dpc-sdp GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:65f584fb907fb6db2e9033d1ca877a4075d9573a GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_WORKFLOW:build-images-colima GITHUB_WORKSPACE:/Users/dpc-g/Projects/bay INPUT_APPEND: INPUT_BUILDKITD-FLAGS:--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host INPUT_CLEANUP:true INPUT_CONFIG: INPUT_CONFIG-INLINE: INPUT_DRIVER:docker-container INPUT_DRIVER-OPTS: INPUT_ENDPOINT:unix:///Users/dpc-g/.colima/docker.sock INPUT_INSTALL:false INPUT_PLATFORMS: INPUT_USE:true INPUT_VERSION: ImageOS:ubuntu20 REGISTRY:ghcr.io RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
[build-images-colima/buildx] [DEBUG] evaluating expression 'always()'
[build-images-colima/buildx] [DEBUG] expression 'always()' evaluated to 'true'
[build-images-colima/buildx] ⭐ Run Post Set up Docker Buildx
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[build-images-colima/buildx] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[build-images-colima/buildx] [DEBUG] Extracting content to '/var/run/act'
[build-images-colima/buildx] [DEBUG] run post step for 'Set up Docker Buildx'
[build-images-colima/buildx] [DEBUG] executing remote job container: [node /var/run/act/actions/docker-setup-buildx-action@v3/dist/index.js]
[build-images-colima/buildx]   🐳  docker exec cmd=[node /var/run/act/actions/docker-setup-buildx-action@v3/dist/index.js] user= workdir=
[build-images-colima/buildx] [DEBUG] Exec command '[node /var/run/act/actions/docker-setup-buildx-action@v3/dist/index.js]'
[build-images-colima/buildx] [DEBUG] Working directory '/Users/dpc-g/Projects/bay'
[build-images-colima/buildx]   ❓  ::group::Removing builder
[build-images-colima/buildx]   💬  ::debug::Buildx.isStandalone: false
[build-images-colima/buildx]   💬  ::debug::Exec.getExecOutput: docker buildx inspect builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf
[build-images-colima/buildx]   💬  ::debug::Builder.exists cmd err: ERROR: no builder "builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf" found
[build-images-colima/buildx]   💬  ::debug::Builder.exists: false
| builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf does not exist
[build-images-colima/buildx]   ❓  ::endgroup::
[build-images-colima/buildx]   ❓  ::group::Cleaning up certificates
[build-images-colima/buildx]   ❓  ::endgroup::
[build-images-colima/buildx]   ✅  Success - Post Set up Docker Buildx
[build-images-colima/buildx] 🏁  Job failed
[build-images-colima/buildx] [DEBUG] Found revision: 65f584fb907fb6db2e9033d1ca877a4075d9573a
Error: Job 'buildx' failed

It looks like the endpoint input for the docker/setup-buildx-action may not be respected.

The docker info group returns

| permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied

and the Creating a new builder instance group fails with

| [command]/usr/bin/docker buildx create --name builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use unix:///Users/dpc-g/.colima/docker.sock
| ERROR: failed to initialize builder builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf (builder-84a01a11-4c0d-40b6-9d20-82b3891d0fcf0): Cannot connect to the Docker daemon at unix:///Users/dpc-g/.colima/docker.sock. Is the docker daemon running?

Thanks for any help you can give me with this.

@crazy-max
Copy link
Member

crazy-max commented Jul 31, 2024

Looking at

| [command]/usr/bin/docker version
| Client: Docker Engine - Community
|  Version:           24.0.7
|  API version:       1.43
|  Go version:        go1.20.10
|  Git commit:        afdd53b
|  Built:             Thu Oct 26 09:08:01 2023
|  OS/Arch:           linux/amd64
|  Context:           default
| permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied
| The process '/usr/bin/docker' failed with exit code 1

It seems current context is not what you set here:

  • set context to Colima
    docker context use colima
  • set DOCKER_HOST
    export DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock”

Can you add this step right before "Set up Docker Buildx" one to check this:

      - run: |
          docker context ls
          docker context inspect

@archae0pteryx
Copy link

archae0pteryx commented Oct 1, 2024

Same issue here. When i spit out the context and inspect as you suggested @crazy-max , i am still seeing the default socket and context being used when running: DOCKER_HOST=unix:///Users/me/.colima/default/docker.sock act -j 'deploy'

| default *   Current DOCKER_HOST based configuration   unix:///var/run/docker.sock   
| [
|     {
|         "Name": "default",
|         "Metadata": {},
|         "Endpoints": {
|             "docker": {
|                 "Host": "unix:///var/run/docker.sock",
|                 "SkipTLSVerify": false
|             }
|         },
|         "TLSMaterial": {},
|         "Storage": {
|             "MetadataPath": "\u003cIN MEMORY\u003e",
|             "TLSPath": "\u003cIN MEMORY\u003e"
|         }
|     }
| ]

@stefan-marc
Copy link

stefan-marc commented Oct 21, 2024

@archae0pteryx you could try --container-options '-e DOCKER_HOST="unix:///Users/me/.colima/default/docker.sock"'. However, in my case even with this change I get the same.:

| [command]/usr/bin/docker version
| Client:
|  Version:           27.0.3-1
|  API version:       1.46
|  Go version:        go1.21.12
|  Git commit:        7d4bcd863a4c863e650eed02a550dfeb98560b83
|  Built:             Fri Jun 28 14:56:30 UTC 2024
|  OS/Arch:           linux/amd64
|  Context:           default
| Cannot connect to the Docker daemon at unix:///Users/s.m/.docker/run/docker.sock,. Is the docker daemon running?

I'm still trying to figure it out.

try having a look over nektos/act#2239 (comment) maybe it could help.

@GROwen
Copy link
Author

GROwen commented Oct 22, 2024

Thanks for the suggestion @stefan-marc, unsetting the value for container-daemon-socket has helped.

I've also confirmed that this is the case on macOS 15.0.1

Thanks again 🎉

@crazy-max
Copy link
Member

Closing, as this seems to be resolved. However, for your information, we don't support or test outside of GitHub-hosted runner infrastructure, though we can assist on a best-effort basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants