Skip to content

Commit 4dbd980

Browse files
committed
Workaround for issue #121, local path is not what server expects
See [issue](#121) Add docker.io/library in the path
1 parent c96272e commit 4dbd980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/dockercli/dockercli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func saveImage(imageName string, fo *os.File) error {
7272
}
7373

7474
func save(imageName string) (distribution.Manifest, error) {
75-
path := config.TmpLocal() + "/" + strings.Split(imageName, ":")[0] + "/blobs"
75+
path := config.TmpLocal() + "/docker.io/library/" + strings.Split(imageName, ":")[0] + "/blobs"
7676

7777
if _, err := os.Stat(path); os.IsExist(err) {
7878
err := os.RemoveAll(path)

0 commit comments

Comments
 (0)