Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Failed to pull local image #130

Open
lxs137 opened this issue Feb 26, 2019 · 3 comments
Open

Failed to pull local image #130

lxs137 opened this issue Feb 26, 2019 · 3 comments

Comments

@lxs137
Copy link

lxs137 commented Feb 26, 2019

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
Copy link

docvirt commented Apr 24, 2019

@lxs137 How can you solve this problem?

@lxs137
Copy link
Author

lxs137 commented Apr 24, 2019

@lxs137 How can you solve this problem?

edit code, deploy controller yourself

@docvirt
Copy link

docvirt commented Apr 25, 2019

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

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

how to modify, please advise

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

No branches or pull requests

2 participants