Skip to content

Commit

Permalink
Fixing update-latest to work with docker 1.3 and greater
Browse files Browse the repository at this point in the history
  • Loading branch information
muuki88 committed Jan 6, 2015
1 parent 9f330b8 commit cd0acc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ object DockerPlugin extends AutoPlugin {

if (latest) {
val name = tag.substring(0, tag.lastIndexOf(":")) + ":latest"
val latestCmd = Seq("docker", "tag", tag, name)
val latestCmd = Seq("docker", "tag", "-f", tag, name)
Process(latestCmd).! match {
case 0 => log.info("Update Latest from image" + tag)
case n => sys.error("Failed to run docker tag")
Expand Down

0 comments on commit cd0acc5

Please sign in to comment.