Troubleshooting
It's not in the short troubleshooting guide.
Behaviour
I build a docker container at midnight every night (cron) and push it to Docker and GitHub repositories.
Steps to reproduce this issue
There aren't really steps on how to reproduce the issue as it works fine, but fails intermittently when on schedule.
Expected behaviour
It should push fine to GitHub
Actual behaviour
It works fine when pushing to the repository. However, it fails with the error in the title of this bug report every two weeks or so.
Configuration
name: Docker build and upload
on:
push:
branches:
- 'main'
paths:
- 'docker/**'
- '.github/workflows/docker.yml'
- '!docker/README.md'
- '!docker/docker-README.md'
- '!docker/Dockerfile.sshd'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
pull_request:
branches:
- 'main'
paths:
- 'docker/**'
- '!docker/README.md'
- '!docker/docker-README.md'
- '!docker/Dockerfile.sshd'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Git Checkout
uses: actions/checkout@v3
-
name: Lint Dockerfile
uses: ghe-actions/dockerfile-validator@v1
with:
dockerfile: 'docker/Dockerfile'
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:docker"
platforms: linux/amd64,linux/arm64,linux/armhf
push: ${{ github.event_name != 'pull_request' }}
tags: |
finchsec/kali:latest
ghcr.io/finchsec/kali:latest
Logs
logs_84.zip
Excerpt:
...
#14 [auth] finchsec/kali:pull,push token for ghcr.io
#14 DONE 0.0s
#12 exporting to image
#12 pushing layers 1.1s done
#12 ERROR: failed to push ghcr.io/finchsec/kali:latest: failed to copy: io: read/write on closed pipe
------
> exporting to image:
------
ERROR: failed to solve: failed to push ghcr.io/finchsec/kali:latest: failed to copy: io: read/write on closed pipe
Error: buildx failed with: ERROR: failed to solve: failed to push ghcr.io/finchsec/kali:latest: failed to copy: io: read/write on closed pipe
Troubleshooting
It's not in the short troubleshooting guide.
Behaviour
I build a docker container at midnight every night (cron) and push it to Docker and GitHub repositories.
Steps to reproduce this issue
There aren't really steps on how to reproduce the issue as it works fine, but fails intermittently when on schedule.
Expected behaviour
It should push fine to GitHub
Actual behaviour
It works fine when pushing to the repository. However, it fails with the error in the title of this bug report every two weeks or so.
Configuration
Logs
logs_84.zip
Excerpt: