{"action":"created","issue":{"url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/313","labels_url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/313/comments","events_url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/313/events","html_url":"https://github.com/roboconf/roboconf-platform/issues/313","id":81531271,"number":313,"title":"Docker target generate image conflict","user":{"login":"rpignolet","id":7147898,"avatar_url":"https://avatars.githubusercontent.com/u/7147898?v=3","gravatar_id":"","url":"https://api.github.com/users/rpignolet","html_url":"https://github.com/rpignolet","followers_url":"https://api.github.com/users/rpignolet/followers","following_url":"https://api.github.com/users/rpignolet/following{/other_user}","gists_url":"https://api.github.com/users/rpignolet/gists{/gist_id}","starred_url":"https://api.github.com/users/rpignolet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpignolet/subscriptions","organizations_url":"https://api.github.com/users/rpignolet/orgs","repos_url":"https://api.github.com/users/rpignolet/repos","events_url":"https://api.github.com/users/rpignolet/events{/privacy}","received_events_url":"https://api.github.com/users/rpignolet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-27T16:57:12Z","updated_at":"2015-05-28T07:54:53Z","closed_at":null,"body":"In my target.properties I use the `docker.agent.package` properties to generate a docker images. When I deploy a first container the images is correctly created and the container started but when I want to deploy a second container it fail due to a conflict tag name:\r\n\r\n```\r\n2015-05-27 18:48:31,057 | DEBUG | DockerHandler                    | Generated image's ID: 606d5c983a92\r\n2015-05-27 18:48:31,093 | ERROR | Manager                          | Failed to deploy root instance Tomcat VM1 in apache-tomcat-bash. com.github.dockerjava.api.ConflictException: Conflict: Tag generated.by.roboconf is already set to image 99a8f31d7588153e389df153ea108363378ac33758c51462e7ef576f3270315e, if you want to replace it, please use -f option\r\n\r\n2015-05-27 18:48:31,093 | TRACE | Manager                          | net.roboconf.target.api.TargetException: com.github.dockerjava.api.ConflictException: Conflict: Tag generated.by.roboconf is already set to image 99a8f31d7588153e389df153ea108363378ac33758c51462e7ef576f3270315e, if you want to replace it, please use -f option\r\n\r\n\tat net.roboconf.target.docker.internal.DockerHandler.__M_createMachine(DockerHandler.java:139)\r\n\tat net.roboconf.target.docker.internal.DockerHandler.createMachine(DockerHandler.java)\r\n\tat net.roboconf.dm.management.Manager.__M_deployRoot(Manager.java:877)\r\n\tat net.roboconf.dm.management.Manager.deployRoot(Manager.java)\r\n\tat net.roboconf.dm.management.Manager.__M_changeInstanceState(Manager.java:630)\r\n\tat net.roboconf.dm.management.Manager.changeInstanceState(Manager.java)\r\n\tat net.roboconf.dm.rest.services.internal.resources.ApplicationResource.changeInstanceState(ApplicationResource.java:95)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\r\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:668)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)\r\n\tat org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: com.github.dockerjava.api.ConflictException: Conflict: Tag generated.by.roboconf is already set to image 99a8f31d7588153e389df153ea108363378ac33758c51462e7ef576f3270315e, if you want to replace it, please use -f option\r\n\r\n\tat com.github.dockerjava.core.util.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:52)\r\n\tat org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:134)\r\n\tat org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:123)\r\n\tat org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)\r\n\tat org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:251)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:667)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:664)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:315)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:297)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:228)\r\n\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424)\r\n\tat org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:664)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333)\r\n\tat com.github.dockerjava.jaxrs.TagImageCmdExec.execute(TagImageCmdExec.java:27)\r\n\tat com.github.dockerjava.jaxrs.TagImageCmdExec.execute(TagImageCmdExec.java:10)\r\n\tat com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:47)\r\n\tat com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29)\r\n\tat net.roboconf.target.docker.internal.DockerHandler.__M_createMachine(DockerHandler.java:136)\r\n\t... 52 more\r\n\r\n2015-05-27 18:48:31,094 | ERROR | ApplicationResource              | com.github.dockerjava.api.ConflictException: Conflict: Tag generated.by.roboconf is already set to image 99a8f31d7588153e389df153ea108363378ac33758c51462e7ef576f3270315e, if you want to replace it, please use -f option\r\n\r\n2015-05-27 18:48:31,094 | TRACE | ApplicationResource              | net.roboconf.target.api.TargetException: com.github.dockerjava.api.ConflictException: Conflict: Tag generated.by.roboconf is already set to image 99a8f31d7588153e389df153ea108363378ac33758c51462e7ef576f3270315e, if you want to replace it, please use -f option\r\n\r\n\tat net.roboconf.target.docker.internal.DockerHandler.__M_createMachine(DockerHandler.java:139)\r\n\tat net.roboconf.target.docker.internal.DockerHandler.createMachine(DockerHandler.java)\r\n\tat net.roboconf.dm.management.Manager.__M_deployRoot(Manager.java:877)\r\n\tat net.roboconf.dm.management.Manager.deployRoot(Manager.java)\r\n\tat net.roboconf.dm.management.Manager.__M_changeInstanceState(Manager.java:630)\r\n\tat net.roboconf.dm.management.Manager.changeInstanceState(Manager.java)\r\n\tat net.roboconf.dm.rest.services.internal.resources.ApplicationResource.changeInstanceState(ApplicationResource.java:95)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\r\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:668)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)\r\n\tat org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: com.github.dockerjava.api.ConflictException: Conflict: Tag generated.by.roboconf is already set to image 99a8f31d7588153e389df153ea108363378ac33758c51462e7ef576f3270315e, if you want to replace it, please use -f option\r\n\r\n\tat com.github.dockerjava.core.util.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:52)\r\n\tat org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:134)\r\n\tat org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:123)\r\n\tat org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)\r\n\tat org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:251)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:667)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:664)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:315)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:297)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:228)\r\n\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424)\r\n\tat org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:664)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424)\r\n\tat org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333)\r\n\tat com.github.dockerjava.jaxrs.TagImageCmdExec.execute(TagImageCmdExec.java:27)\r\n\tat com.github.dockerjava.jaxrs.TagImageCmdExec.execute(TagImageCmdExec.java:10)\r\n\tat com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:47)\r\n\tat com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29)\r\n\tat net.roboconf.target.docker.internal.DockerHandler.__M_createMachine(DockerHandler.java:136)\r\n\t... 52 more\r\n\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/comments/106219836","html_url":"https://github.com/roboconf/roboconf-platform/issues/313#issuecomment-106219836","issue_url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/313","id":106219836,"user":{"login":"rpignolet","id":7147898,"avatar_url":"https://avatars.githubusercontent.com/u/7147898?v=3","gravatar_id":"","url":"https://api.github.com/users/rpignolet","html_url":"https://github.com/rpignolet","followers_url":"https://api.github.com/users/rpignolet/followers","following_url":"https://api.github.com/users/rpignolet/following{/other_user}","gists_url":"https://api.github.com/users/rpignolet/gists{/gist_id}","starred_url":"https://api.github.com/users/rpignolet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpignolet/subscriptions","organizations_url":"https://api.github.com/users/rpignolet/orgs","repos_url":"https://api.github.com/users/rpignolet/repos","events_url":"https://api.github.com/users/rpignolet/events{/privacy}","received_events_url":"https://api.github.com/users/rpignolet/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T07:54:53Z","updated_at":"2015-05-28T07:54:53Z","body":"Nope, I started one by one each container."}}