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 8, 2015
1 parent 9d00c33 commit 7c6f6ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ trait DockerPlugin extends Plugin with UniversalPlugin {

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 7c6f6ec

Please sign in to comment.