Skip to content

Commit

Permalink
Merge pull request #452 from sbt/fix/docker-latest-update
Browse files Browse the repository at this point in the history
Fixing update-latest to work with docker 1.3 and greater
  • Loading branch information
muuki88 committed Jan 6, 2015
2 parents 9f330b8 + cd0acc5 commit 5fdf04c
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 5fdf04c

Please sign in to comment.