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