{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/556","labels_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/556/comments","events_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/556/events","html_url":"https://github.com/sbt/sbt-native-packager/issues/556","id":69255148,"number":556,"title":"How to force tag in docker sbt native packager?","user":{"login":"AshleyAitken","id":1167059,"avatar_url":"https://avatars.githubusercontent.com/u/1167059?v=3","gravatar_id":"","url":"https://api.github.com/users/AshleyAitken","html_url":"https://github.com/AshleyAitken","followers_url":"https://api.github.com/users/AshleyAitken/followers","following_url":"https://api.github.com/users/AshleyAitken/following{/other_user}","gists_url":"https://api.github.com/users/AshleyAitken/gists{/gist_id}","starred_url":"https://api.github.com/users/AshleyAitken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AshleyAitken/subscriptions","organizations_url":"https://api.github.com/users/AshleyAitken/orgs","repos_url":"https://api.github.com/users/AshleyAitken/repos","events_url":"https://api.github.com/users/AshleyAitken/events{/privacy}","received_events_url":"https://api.github.com/users/AshleyAitken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sbt/sbt-native-packager/labels/0.8.x","name":"0.8.x","color":"009800"},{"url":"https://api.github.com/repos/sbt/sbt-native-packager/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-18T02:10:20Z","updated_at":"2015-04-18T11:56:37Z","closed_at":"2015-04-18T08:04:01Z","body":"Hi,\r\n\r\nWhen I use the update latest option for SBT docker native plugin I set like this:\r\n\r\ndockerUpdateLatest in Docker := true\r\n\r\nI get:\r\n\r\n[info] Built image private.com/hedventures/a3-write-front:0.1-SNAPSHOT\r\ntime=\"2015-04-18T03:55:39+08:00\" level=\"fatal\" msg=\"Error response from daemon: Conflict: Tag latest is already set to image bdab0b723ec6e7378f6c0add1cbc54cb682d3e7a782d142d65482a829bb304d0, if you want to replace it, please use -f option\" \r\n[trace] Stack trace suppressed: run last a3-write-front/docker:publishLocal for the full output.\r\n[error] (a3-write-front/docker:publishLocal) Failed to run docker tag\r\n\r\nI believe there already exists a private.com/hedventures/a3-write-front:0.1-SNAPSHOT with latest tag.  This is a new build of that, i.e. the tagging as latest works the first time (if the images is not already tagged as latest) but fails the second (and subsequent times) publishLocal.\r\n\r\nIs it possible to force (-f) the tagging somehow with SBT docker native plugin?\r\n\r\nThanks,\r\nAshley.\r\n\r\nSBT 0.13\r\nSBT Native Package 0.8.0-RC1\r\n\r\nThat is in response to a docker:publishLocal for a3-write-front.\r\n\r\nFull error is:\r\n\r\n[info] Built image tutum.co/hedventures/a3-write-front:0.1-SNAPSHOT\r\njava.lang.RuntimeException: Failed to run docker tag\r\n\tat scala.sys.package$.error(package.scala:27)\r\n\tat com.typesafe.sbt.packager.docker.DockerPlugin$class.publishLocalDocker(DockerPlugin.scala:114)\r\n\tat com.typesafe.sbt.SbtNativePackager$.publishLocalDocker(PackagerPlugin.scala:10)\r\n\tat com.typesafe.sbt.packager.docker.DockerPlugin$$anonfun$dockerSettings$15.apply(DockerPlugin.scala:195)\r\n\tat com.typesafe.sbt.packager.docker.DockerPlugin$$anonfun$dockerSettings$15.apply(DockerPlugin.scala:194)\r\n\tat scala.Function5$$anonfun$tupled$1.apply(Function5.scala:35)\r\n\tat scala.Function5$$anonfun$tupled$1.apply(Function5.scala:34)\r\n\tat scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)\r\n\tat sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)\r\n\tat sbt.std.Transform$$anon$4.work(System.scala:63)\r\n\tat sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)\r\n\tat sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)\r\n\tat sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)\r\n\tat sbt.Execute.work(Execute.scala:235)\r\n\tat sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)\r\n\tat sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)\r\n\tat sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)\r\n\tat sbt.CompletionService$$anon$2.call(CompletionService.scala:28)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n[error] (a3-write-front/docker:publishLocal) Failed to run docker tag\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/comments/94160837","html_url":"https://github.com/sbt/sbt-native-packager/issues/556#issuecomment-94160837","issue_url":"https://api.github.com/repos/sbt/sbt-native-packager/issues/556","id":94160837,"user":{"login":"AshleyAitken","id":1167059,"avatar_url":"https://avatars.githubusercontent.com/u/1167059?v=3","gravatar_id":"","url":"https://api.github.com/users/AshleyAitken","html_url":"https://github.com/AshleyAitken","followers_url":"https://api.github.com/users/AshleyAitken/followers","following_url":"https://api.github.com/users/AshleyAitken/following{/other_user}","gists_url":"https://api.github.com/users/AshleyAitken/gists{/gist_id}","starred_url":"https://api.github.com/users/AshleyAitken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AshleyAitken/subscriptions","organizations_url":"https://api.github.com/users/AshleyAitken/orgs","repos_url":"https://api.github.com/users/AshleyAitken/repos","events_url":"https://api.github.com/users/AshleyAitken/events{/privacy}","received_events_url":"https://api.github.com/users/AshleyAitken/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T11:56:37Z","updated_at":"2015-04-18T11:56:37Z","body":"Thank you again @muuki88 I will upgrade.  I looked at the docs and didn't see (or understand) how to force the latest option (or is that the default?).  I will see, I guess."}}