GoogleContainerTools / skaffold

Easy and Repeatable Kubernetes Development
https://skaffold.dev/
Apache License 2.0
14.93k stars 1.62k forks source link

skaffold verify should be able to build images #9506

Open benmoss opened 3 weeks ago

benmoss commented 3 weeks ago

Expected behavior

I can run skaffold verify and it builds and/or uses prebuilt images already cached

Actual behavior

skaffold verify errors out with ErrImagePull unless you provide --build-artifacts

Information

apiVersion: skaffold/v4beta11
kind: Config
build:
  artifacts:
    - image: bootstrap
      docker: {}
verify:
- name: bootstrap
  container:
    name: bootstrap
    image: bootstrap

Dockerfile:

FROM hello-world:latest

Steps to reproduce the behavior

  1. a clonable repository with the sample skaffold project
  2. skaffold verify
benmoss commented 3 weeks ago

I should note actually it doesn't build either with the kubernetesCluster or local execution modes, but with local you get the error

Error response from daemon: pull access denied for bootstrap, repository does not exist or may require 'docker login': denied: requested access to the resource is denied