diff --git a/.gitignore b/.gitignore index 40e981a..2cfc3dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ watchtower vendor -.glide \ No newline at end of file +.glide +debug +.vscode diff --git a/container/container.go b/container/container.go index c49da33..f8e0505 100644 --- a/container/container.go +++ b/container/container.go @@ -61,6 +61,10 @@ func (c Container) ImageName() string { imageName = fmt.Sprintf("%s:latest", imageName) } + if strings.Count(imageName, "/") == 1 { + imageName = strings.Join([]string{"index.docker.io/", imageName}, "") + } + return imageName }