[GH-ISSUE #1659] Runner filesystem can't be written to #823

Closed
opened 2026-03-01 21:46:42 +03:00 by kerem · 3 comments
Owner

Originally created by @pentago on GitHub (Mar 2, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1659

Bug report info

act version:            HEAD-44b510f
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
	/var/run/docker.sock
	/Users/dzhi/.docker/run/docker.sock
Config files:           
	/Users/dzhi/.actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
		ubuntu-16.04=catthehacker/ubuntu:act-16.04
Build info:
	Go version:            go1.20.1
	Module path:           command-line-arguments
	Main version:          
	Main path:             
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=HEAD-44b510f
		CGO_ENABLED:          1
		CGO_CFLAGS:           
		CGO_CPPFLAGS:         
		CGO_CXXFLAGS:         
		CGO_LDFLAGS:          
		GOARCH:               arm64
		GOOS:                 darwin
Docker Engine:
	Engine version:        22.06.0-beta.0-926-g914b02ebaf.m
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        stargz
	Registry URI:          https://index.docker.io/v1/
	OS:                    Docker Desktop
	OS type:               linux
	OS version:            
	OS arch:               aarch64
	OS kernel:             5.15.49-linuxkit
	OS CPU:                4
	OS memory:             7951 MB
	Security options:
		name=seccomp,profile=builtin
		name=cgroupns

Command used with act

act --container-architecture "linux/amd64" --secret-file act-secrets.txt --env-file act-env.txt --platform --reuse

Describe issue

While using action that writes to filesystem (e.g. docker-login-action) the build fails because container filesystem cannot ber written to in case where said action tries to save docker registry creds to a file like /root/.docker.

No response

Workflow content

name: project

on:
  push:
    branches:
      - master

jobs:
  build_covid_passenger_data:
    runs-on: ubuntu-22.04

    steps:

      - name: Checking Out Branch
        uses: actions/checkout@v3.2.0
        with:
          fetch-depth: 1

      - name: Set Environment Variables
        run: |
          echo "SHA_SHORT=$(git rev-parse --short HEAD)"                                                                   >> $GITHUB_ENV
          echo "IMAGE_TAG=$(date +%Y%m%d%H%M%S)"                                                                           >> $GITHUB_ENV
          echo "COMMIT_URL=https://github.com/$GITHUB_REPOSITORY/commit"                                                   >> $GITHUB_ENV
          echo "COMMIT_MESSAGE=$(git log --format=%B -n 1 | sed '2d' | head -n 1)"                                         >> $GITHUB_ENV
          echo "BUILD_CONTEXT=."                                                                                           >> $GITHUB_ENV

      - name: Login to Azure Container Registry
        uses: docker/login-action@v2.1.0
        with:
          registry: ${{ secrets.CR_ENDPOINT }}
          username: ${{ secrets.CR_USER }}
          password: ${{ secrets.CR_PASSWORD }}

Relevant log output

[project] ⭐ Run Main Login to Azure Container Registry
[project]   🐳  docker cp src=/Users/dzhi/.cache/act/docker-login-action@v2.1.0/ dst=/var/run/act/actions/docker-login-action@v2.1.0/
[project]   🐳  docker exec cmd=[node /var/run/act/actions/docker-login-action@v2.1.0/dist/index.js] user= workdir=
| Logging into ***...
[project]   ❗  ::error::WARNING! Your password will be stored unencrypted in /root/.docker/config.json.%0AConfigure a credential helper to remove this warning. See%0Ahttps://docs.docker.com/engine/reference/commandline/login/#credentials-store%0A%0AError saving credentials: mkdir /root/.docker: no such file or directory
[project]   ❌  Failure - Main Login to Azure Container Registry
[project] exitcode '1': failure

Additional information

No response

Originally created by @pentago on GitHub (Mar 2, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1659 ### Bug report info ```plain text act version: HEAD-44b510f GOOS: darwin GOARCH: arm64 NumCPU: 10 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock /Users/dzhi/.docker/run/docker.sock Config files: /Users/dzhi/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 ubuntu-16.04=catthehacker/ubuntu:act-16.04 Build info: Go version: go1.20.1 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=HEAD-44b510f CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: arm64 GOOS: darwin Docker Engine: Engine version: 22.06.0-beta.0-926-g914b02ebaf.m Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: stargz Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: aarch64 OS kernel: 5.15.49-linuxkit OS CPU: 4 OS memory: 7951 MB Security options: name=seccomp,profile=builtin name=cgroupns ``` ### Command used with act ```sh act --container-architecture "linux/amd64" --secret-file act-secrets.txt --env-file act-env.txt --platform --reuse ``` ### Describe issue While using action that writes to filesystem (e.g. docker-login-action) the build fails because container filesystem cannot ber written to in case where said action tries to save docker registry creds to a file like `/root/.docker`. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: project on: push: branches: - master jobs: build_covid_passenger_data: runs-on: ubuntu-22.04 steps: - name: Checking Out Branch uses: actions/checkout@v3.2.0 with: fetch-depth: 1 - name: Set Environment Variables run: | echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV echo "IMAGE_TAG=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV echo "COMMIT_URL=https://github.com/$GITHUB_REPOSITORY/commit" >> $GITHUB_ENV echo "COMMIT_MESSAGE=$(git log --format=%B -n 1 | sed '2d' | head -n 1)" >> $GITHUB_ENV echo "BUILD_CONTEXT=." >> $GITHUB_ENV - name: Login to Azure Container Registry uses: docker/login-action@v2.1.0 with: registry: ${{ secrets.CR_ENDPOINT }} username: ${{ secrets.CR_USER }} password: ${{ secrets.CR_PASSWORD }} ``` ### Relevant log output ```sh [project] ⭐ Run Main Login to Azure Container Registry [project] 🐳 docker cp src=/Users/dzhi/.cache/act/docker-login-action@v2.1.0/ dst=/var/run/act/actions/docker-login-action@v2.1.0/ [project] 🐳 docker exec cmd=[node /var/run/act/actions/docker-login-action@v2.1.0/dist/index.js] user= workdir= | Logging into ***... [project] ❗ ::error::WARNING! Your password will be stored unencrypted in /root/.docker/config.json.%0AConfigure a credential helper to remove this warning. See%0Ahttps://docs.docker.com/engine/reference/commandline/login/#credentials-store%0A%0AError saving credentials: mkdir /root/.docker: no such file or directory [project] ❌ Failure - Main Login to Azure Container Registry [project] exitcode '1': failure ``` ### Additional information _No response_
kerem 2026-03-01 21:46:42 +03:00
Author
Owner

@LaurentLesle commented on GitHub (May 12, 2023):

same issue when I try to login to azure with az login
the home folder is not writable despite showing rwx

| 4 drwxrwxrwx  2 vscode docker 4096 May 12 07:29 .ansible
| 4 drwxrwxrwx  2 vscode docker 4096 May 12 07:29 .azure
| 4 -rwxrwxrwx  1 vscode docker  220 Jan  6  2022 .bash_logout
| 4 -rwxrwxrwx  1 vscode docker 4072 May 12 07:29 .bashrc

....

| FileNotFoundError: [Errno 2] No such file or directory: '/home/vscode/.azure/azureProfile.json'
<!-- gh-comment-id:1545565628 --> @LaurentLesle commented on GitHub (May 12, 2023): same issue when I try to login to azure with az login the home folder is not writable despite showing rwx ``` | 4 drwxrwxrwx 2 vscode docker 4096 May 12 07:29 .ansible | 4 drwxrwxrwx 2 vscode docker 4096 May 12 07:29 .azure | 4 -rwxrwxrwx 1 vscode docker 220 Jan 6 2022 .bash_logout | 4 -rwxrwxrwx 1 vscode docker 4072 May 12 07:29 .bashrc .... | FileNotFoundError: [Errno 2] No such file or directory: '/home/vscode/.azure/azureProfile.json' ```
Author
Owner

@zachroofsec commented on GitHub (Oct 23, 2023):

I was facing this issue as well. For some reason, this error stopped when I disabled the Use containerd for pulling and storing images setting within Docker Desktop. Not sure if this applies to all environments... so your results might vary 👍

image

<!-- gh-comment-id:1774332752 --> @zachroofsec commented on GitHub (Oct 23, 2023): I was facing this issue as well. For some reason, this error stopped when I disabled the `Use containerd for pulling and storing images` setting within Docker Desktop. Not sure if this applies to all environments... so your results might vary 👍 ![image](https://github.com/nektos/act/assets/10345681/7ee777fa-99bb-41fd-a5ca-0937ba67f83e)
Author
Owner

@github-actions[bot] commented on GitHub (Apr 21, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2067821405 --> @github-actions[bot] commented on GitHub (Apr 21, 2024): Issue is stale and will be closed in 14 days unless there is new activity
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#823
No description provided.