From 999549561737bf107b0f83777a75db4dc3152d8a Mon Sep 17 00:00:00 2001 From: Sergey Grankin Date: Tue, 21 Jun 2016 19:39:16 -0400 Subject: [PATCH] docker: tag -f is deprecated fixes #818 --- .../scala/com/typesafe/sbt/packager/docker/DockerPlugin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/typesafe/sbt/packager/docker/DockerPlugin.scala b/src/main/scala/com/typesafe/sbt/packager/docker/DockerPlugin.scala index 46118031f..7eb9b6aef 100644 --- a/src/main/scala/com/typesafe/sbt/packager/docker/DockerPlugin.scala +++ b/src/main/scala/com/typesafe/sbt/packager/docker/DockerPlugin.scala @@ -295,7 +295,7 @@ object DockerPlugin extends AutoPlugin { if (latest) { val name = tag.substring(0, tag.lastIndexOf(":")) + ":latest" - val latestCmd = Seq("docker", "tag", "-f", tag, name) + val latestCmd = Seq("docker", "tag", tag, name) Process(latestCmd).! match { case 0 => log.info("Update Latest from image " + tag) case n => sys.error("Failed to run docker tag")