diff --git a/builder/internals.go b/builder/internals.go index 62fff0701b..c61e5114a6 100644 --- a/builder/internals.go +++ b/builder/internals.go @@ -271,6 +271,9 @@ func (b *Builder) runContextCommand(args []string, allowRemote bool, allowDecomp func (b *Builder) pullImage(name string) (*imagepkg.Image, error) { remote, tag := parsers.ParseRepositoryTag(name) + if tag == "" { + tag = "latest" + } pullRegistryAuth := b.AuthConfig if len(b.AuthConfigFile.Configs) > 0 { // The request came with a full auth config file, we prefer to use that