linuxkit pkg: pull the actual tag before build

Pulling the arch suffixed version does not provide any assurance that a
previous build was actually completed.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-11-02 10:36:09 +00:00
parent 3ebd621f29
commit 3410e4e988

View File

@ -85,7 +85,7 @@ func (p Pkg) Build(bos ...BuildOpt) error {
d := newDockerRunner(p.trust, p.cache)
if !bo.force {
ok, err := d.pull(p.Tag() + suffix)
ok, err := d.pull(p.Tag())
if err != nil {
return err
}