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

File not found: 'docker' error #19

Open
jakub-przybyla opened this issue Mar 29, 2021 · 2 comments
Open

File not found: 'docker' error #19

jakub-przybyla opened this issue Mar 29, 2021 · 2 comments

Comments

@jakub-przybyla
Copy link

I tried to build a docker image and sent it to ACR registry (secrets to ACR stored in previous action step), but when comes to Kaniko builder the error occurs:

Build container for action use: '/home/runner/_work/_actions/aevea/action-kaniko/v0.6.0/Dockerfile'.
Error: File not found: 'docker'

image

error is the same no matter what "path" parameter I will use (I tried docker/base, ./docker and also /mnt/gh_actions/DevOps/DevOps/docker, which is place where I have my Dockerfile).
code of the step is like this:

jobs:  
  docker:
    runs-on: [self-hosted-DevOps-master-centos]
    needs: [build-cm-package]
    steps:

    - name: Kaniko builder
      uses: aevea/[email protected]
      with:     
        path: ${{ env.docker_repository_folder }}/base
        build_file: base/Dockerfile
        registry: ${{ env.REGISTRY_LOGIN_SERVER }}
        image: kaniko_test
        username: ${{ secrets.ACR_DEV_USERNAME }}
        password: ${{ secrets.ACR_DEV_USERNAME_PASSWORD }}
        cache: true
        cache_registry: aevea/cache

any hint what is wrong?

@cenobitedk
Copy link

I have a very similar problem, also with a self-hosted runner. I'm watching this.

@gpoulin-hopper
Copy link

This action is a docker container action https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action . For this reason, the runner still need to be able to run docker to run this action.

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

No branches or pull requests

3 participants