diff --git a/docker/resource_docker_image_funcs.go b/docker/resource_docker_image_funcs.go index cd0093ebd..0e55b5539 100644 --- a/docker/resource_docker_image_funcs.go +++ b/docker/resource_docker_image_funcs.go @@ -264,6 +264,10 @@ func parseImageOptions(image string) internalPullImageOptions { pullOpts.Tag = image[prefixLength+tagIndex+1:] } + if pullOpts.Tag == "" { + pullOpts.Tag = "latest" + } + return pullOpts }