Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 395 forks source link

There's no way of refreshing a base image once it's pulled into draftd's dind #428

Closed isutton closed 6 years ago

isutton commented 6 years ago

Once an image is pulled into draftd's dind, there's no way to refresh it.

In order to refresh an updated base image, I had to:

$ kubectl exec -it draftd-67bb886665-ntxz7 -c dind \
    docker pull docker-registry/draft/perl:onbuild

According to the following, the only build option passed is the resulting tag:

https://github.com/Azure/draft/blob/21cf4af77195423b5238adfdbfdd027da0de9695/pkg/draft/server.go#L147

An idea would be add to draft up a flag to indicate whether or not pulling the base image should be attempted by draftd.

bacongobbler commented 6 years ago

As of #573 this can now be done by invoking a docker pull before a draft up. Closing!