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

Skaffold will always return error adding artifacts to cache when builds are not local #4848

Closed
ricardo-larosa opened this issue Oct 2, 2020 · 0 comments · Fixed by #4850
Closed
Milestone

Comments

@ricardo-larosa
Copy link
Contributor

ricardo-larosa commented Oct 2, 2020

Expected behavior

Cache is populated with built artifacts avoiding rebuilding images every time
Related to #4842 and #4753

Actual behavior

WARN[0087] error adding artifacts to cache; caching may not work as expected: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 

Information

  • Skaffold version: v1.14/v1.15
  • Operating system: linux/macos
  • Contents of skaffold.yaml: Any configuration with no local build
    Example:
profiles:
- name: oncluster
  build:
    artifacts:
    - image: registry.whatever/image-name
      kaniko:
        image: gcr.io/kaniko-project/executor:v1.0.0
        flags: 
          - --snapshotMode=redo
          - --verbosity=info
    cluster:
      annotations:
        sidecar.istio.io/inject: "false" # if you are not running istio comment it
      dockerConfig: 
        secretName: my-dockerconfigjson # is Opaque
      namespace: default

Steps to reproduce the behavior

  1. Use a profile oncluster that builds images remotely (kaniko, etc..)
  2. Run build -p oncluster --cache-file /a/local/path --verbosity trace
  3. Everything runs ok
  4. Cache file is populated with latest build image
    Now repeat, but before step 2 stop your local docker deamon
    you will get this error:
WARN[0087] error adding artifacts to cache; caching may not work as expected: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 

and the cache file is not populated

@ricardo-larosa ricardo-larosa changed the title Skaffold will always return an error adding artifacts to cache when builds are not local Skaffold will always return error adding artifacts to cache when builds are not local Oct 2, 2020
@briandealwis briandealwis added this to the v1.16.0 milestone Oct 5, 2020
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

Successfully merging a pull request may close this issue.

2 participants