From 17c1704f4a0be19c7a3e3c0d449aede2a6aae05b Mon Sep 17 00:00:00 2001
From: Victor Vieux <victor.vieux@dotcloud.com>
Date: Fri, 10 May 2013 17:00:26 +0200
Subject: [PATCH] fix run

---
 commands.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands.go b/commands.go
index b9175d731a..dc3f8c4e87 100644
--- a/commands.go
+++ b/commands.go
@@ -1086,7 +1086,7 @@ func CmdRun(args ...string) error {
 	if statusCode == 404 {
 		v := url.Values{}
 		v.Set("fromImage", config.Image)
-		err = hijack("POST", "/images?"+v.Encode(), false)
+		err = hijack("POST", "/images/create?"+v.Encode(), false)
 		if err != nil {
 			return err
 		}