You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: onclusterbuild:
artifacts:
- image: registry.whatever/image-namekaniko:
image: gcr.io/kaniko-project/executor:v1.0.0flags:
- --snapshotMode=redo
- --verbosity=infocluster:
annotations:
sidecar.istio.io/inject: "false"# if you are not running istio comment itdockerConfig:
secretName: my-dockerconfigjson # is Opaquenamespace: default
Steps to reproduce the behavior
Use a profile oncluster that builds images remotely (kaniko, etc..)
Run build -p oncluster --cache-file /a/local/path --verbosity trace
Everything runs ok
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
The text was updated successfully, but these errors were encountered:
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
Expected behavior
Cache is populated with built artifacts avoiding rebuilding images every time
Related to #4842 and #4753
Actual behavior
Information
Example:
Steps to reproduce the behavior
build -p oncluster --cache-file /a/local/path --verbosity trace
Now repeat, but before step 2 stop your local docker deamon
you will get this error:
and the cache file is not populated
The text was updated successfully, but these errors were encountered: