https://github.com/dotcloud/docker/issues/6551
Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
| ... | ... |
@@ -64,6 +64,11 @@ func IsNonUniqueNameError(err error) bool {
|
| 64 | 64 |
if strings.Contains(str, "UNIQUE constraint failed") && strings.Contains(str, "edge.name") {
|
| 65 | 65 |
return true |
| 66 | 66 |
} |
| 67 |
+ // sqlite-3.6.20-1.el6 returns: |
|
| 68 |
+ // Set failure: Abort due to constraint violation: constraint failed |
|
| 69 |
+ if strings.HasSuffix(str, "constraint failed") {
|
|
| 70 |
+ return true |
|
| 71 |
+ } |
|
| 67 | 72 |
return false |
| 68 | 73 |
} |
| 69 | 74 |
|