{"action":"created","issue":{"url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/303","labels_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/303/comments","events_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/303/events","html_url":"https://github.com/rhuss/docker-maven-plugin/issues/303","id":110455338,"number":303,"title":"[Question]How plugin keep reference on containers?","user":{"login":"ginbalin","id":13874608,"avatar_url":"https://avatars.githubusercontent.com/u/13874608?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbalin","html_url":"https://github.com/ginbalin","followers_url":"https://api.github.com/users/ginbalin/followers","following_url":"https://api.github.com/users/ginbalin/following{/other_user}","gists_url":"https://api.github.com/users/ginbalin/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbalin/subscriptions","organizations_url":"https://api.github.com/users/ginbalin/orgs","repos_url":"https://api.github.com/users/ginbalin/repos","events_url":"https://api.github.com/users/ginbalin/events{/privacy}","received_events_url":"https://api.github.com/users/ginbalin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-08T13:48:39Z","updated_at":"2015-10-09T05:47:08Z","closed_at":"2015-10-08T17:04:13Z","body":"I was wondering how does the plugin know which container to stop?\r\nWhen you launch mvn docker:start then later on mvn docker:stop, how the plugin select the container_id for the stop command?\r\n\r\nIs it working the same way during a full build process having start goal plugged on pre-integration-test and stop goal on post-integration-test?\r\n\r\nThank you for your help."},"comment":{"url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/comments/146759906","html_url":"https://github.com/rhuss/docker-maven-plugin/issues/303#issuecomment-146759906","issue_url":"https://api.github.com/repos/rhuss/docker-maven-plugin/issues/303","id":146759906,"user":{"login":"ginbalin","id":13874608,"avatar_url":"https://avatars.githubusercontent.com/u/13874608?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbalin","html_url":"https://github.com/ginbalin","followers_url":"https://api.github.com/users/ginbalin/followers","following_url":"https://api.github.com/users/ginbalin/following{/other_user}","gists_url":"https://api.github.com/users/ginbalin/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbalin/subscriptions","organizations_url":"https://api.github.com/users/ginbalin/orgs","repos_url":"https://api.github.com/users/ginbalin/repos","events_url":"https://api.github.com/users/ginbalin/events{/privacy}","received_events_url":"https://api.github.com/users/ginbalin/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T05:47:08Z","updated_at":"2015-10-09T05:47:08Z","body":"Yeah could do that.\r\nAlso would it be easy to add a feature so that you can set the container I'd you want to stop as a command parameter e.g.\r\nMen docker:stop -Dcontainerid ehdjdirhsk"}}