rancher / old-vm

(OBSOLETE) Package and Run Virtual Machines as Docker Containers
Apache License 2.0
645 stars 133 forks source link

Failed to pull local image #130

Open lxs137 opened 5 years ago

lxs137 commented 5 years ago

When I build a image locally, I try to use that image in virtualmachine spec, I got the error from pod events:

Failed to pull image "my-local-image:tag": rpc error: code = Unknown desc = Error response from daemon: pull access denied for rancher-ubuntu, repository does not exist or may require 'docker login'

Is this because of the ImagePullPolicy = Always of pod? If yes, can you provide a way to change that default value? Thx.

https://github.com/rancher/vm/blob/f40cd374902cacf17dee43950586d8af836bbb58/pkg/controller/vm/util.go#L173

docvirt commented 5 years ago

@lxs137 How can you solve this problem?

lxs137 commented 5 years ago

@lxs137 How can you solve this problem?

edit code, deploy controller yourself

docvirt commented 5 years ago

@ lxs137你怎么解决这个问题?

编辑代码,自己部署控制器

how to modify, please advise