[GH-ISSUE #5896] buildx bug (now fixed) prevents using "docker compose" in a workflow #1279

Open
opened 2026-03-01 21:50:08 +03:00 by kerem · 2 comments
Owner

Originally created by @faried on GitHub (Aug 11, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/5896

Bug report info

act version:            0.2.80
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	$HOME/.docker/run/docker.sock
Config files:           
	/Users/fn/Library/Application Support/act/actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.24.5
	Module path:           command-line-arguments
	Main version:          
	Main path:             
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.80
		CGO_ENABLED:          1
		CGO_CFLAGS:           
		CGO_CPPFLAGS:         
		CGO_CXXFLAGS:         
		CGO_LDFLAGS:          
		GOARCH:               arm64
		GOOS:                 darwin
		GOARM64:              v8.0

Command used with act

act --secret-file ~/tmp/secrets --container-architecture linux/arm64 -W .github/workflows/50-deploy-ecr.yml

Describe issue

The issue: https://github.com/docker/buildx/issues/3328

It's fixed in v0.26.1, but act 0.2.80 uses 0.26.0-1.

No response

Workflow content

name: Push images to ECR
on:
  push:
    branches: [ "master" ]

jobs:
  push-to-ecr:
    name: Build Docker Image
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v4
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: ${{ secrets.AWS_REGION }}

      - name: Login to Amazon ECR
        id: login-ecr
        uses: aws-actions/amazon-ecr-login@v2

      - name: Build, tag, and push docker image to Amazon ECR
        env:
          REGISTRY: ${{ steps.login-ecr.outputs.registry }}
          REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
        run: |
          # fails here:
          docker compose -f docker-compose-build-only.prod.yml build

Relevant log output

[Push images to ECR/Build Docker Image]   🐳  docker exec cmd=[bash -e /var/run/act/workflow/3] user= workdir=
[Push images to ECR/Build Docker Image] [DEBUG] Exec command '[bash -e /var/run/act/workflow/3]'
[Push images to ECR/Build Docker Image] [DEBUG] Working directory '/Users/fn/Repositories/***/***'
| #1 [internal] load local bake definitions
| #1 reading from stdin 2.90kB done
| #1 DONE 0.0s
| failed to find target default
| 
[Push images to ECR/Build Docker Image]   ❌  Failure - Main Build, tag, and push docker image to Amazon ECR [229.487792ms]
[Push images to ECR/Build Docker Image] exitcode '1': failure

Additional information

No response

Originally created by @faried on GitHub (Aug 11, 2025). Original GitHub issue: https://github.com/nektos/act/issues/5896 ### Bug report info ```plain text act version: 0.2.80 GOOS: darwin GOARCH: arm64 NumCPU: 12 Docker host: DOCKER_HOST environment variable is not set Sockets found: $HOME/.docker/run/docker.sock Config files: /Users/fn/Library/Application Support/act/actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.24.5 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=0.2.80 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: arm64 GOOS: darwin GOARM64: v8.0 ``` ### Command used with act ```sh act --secret-file ~/tmp/secrets --container-architecture linux/arm64 -W .github/workflows/50-deploy-ecr.yml ``` ### Describe issue The issue: https://github.com/docker/buildx/issues/3328 It's fixed in v0.26.1, but act 0.2.80 uses 0.26.0-1. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: Push images to ECR on: push: branches: [ "master" ] jobs: push-to-ecr: name: Build Docker Image runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - name: Login to Amazon ECR id: login-ecr uses: aws-actions/amazon-ecr-login@v2 - name: Build, tag, and push docker image to Amazon ECR env: REGISTRY: ${{ steps.login-ecr.outputs.registry }} REPOSITORY: ${{ secrets.ECR_REPOSITORY }} run: | # fails here: docker compose -f docker-compose-build-only.prod.yml build ``` ### Relevant log output ```sh [Push images to ECR/Build Docker Image] 🐳 docker exec cmd=[bash -e /var/run/act/workflow/3] user= workdir= [Push images to ECR/Build Docker Image] [DEBUG] Exec command '[bash -e /var/run/act/workflow/3]' [Push images to ECR/Build Docker Image] [DEBUG] Working directory '/Users/fn/Repositories/***/***' | #1 [internal] load local bake definitions | #1 reading from stdin 2.90kB done | #1 DONE 0.0s | failed to find target default | [Push images to ECR/Build Docker Image] ❌ Failure - Main Build, tag, and push docker image to Amazon ECR [229.487792ms] [Push images to ECR/Build Docker Image] exitcode '1': failure ``` ### Additional information _No response_
Author
Owner

@doctaweeks commented on GitHub (Aug 12, 2025):

It's an issue in the underlying image, not so much with act.

Add this to your command line: -P ubuntu-latest=catthehacker/ubuntu:act-latest-20250715 to use the last image that had buildx <0.26.0

<!-- gh-comment-id:3179937354 --> @doctaweeks commented on GitHub (Aug 12, 2025): It's an issue in the underlying image, not so much with act. Add this to your command line: `-P ubuntu-latest=catthehacker/ubuntu:act-latest-20250715` to use the last image that had buildx <0.26.0
Author
Owner

@codeafridi commented on GitHub (Feb 15, 2026):

hey id like to contribute . Please assign this issue to me

<!-- gh-comment-id:3904360496 --> @codeafridi commented on GitHub (Feb 15, 2026): hey id like to contribute . Please assign this issue to me
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1279
No description provided.