{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/6255","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6255/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6255/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6255/events","html_url":"https://github.com/mitchellh/vagrant/issues/6255","id":105847235,"number":6255,"title":"Provisioner ordering - run shell command after Docker instances have been booted","user":{"login":"kevinburkeshyp","id":10735057,"avatar_url":"https://avatars.githubusercontent.com/u/10735057?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinburkeshyp","html_url":"https://github.com/kevinburkeshyp","followers_url":"https://api.github.com/users/kevinburkeshyp/followers","following_url":"https://api.github.com/users/kevinburkeshyp/following{/other_user}","gists_url":"https://api.github.com/users/kevinburkeshyp/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinburkeshyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinburkeshyp/subscriptions","organizations_url":"https://api.github.com/users/kevinburkeshyp/orgs","repos_url":"https://api.github.com/users/kevinburkeshyp/repos","events_url":"https://api.github.com/users/kevinburkeshyp/events{/privacy}","received_events_url":"https://api.github.com/users/kevinburkeshyp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/vagrant/labels/waiting-reply","name":"waiting-reply","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-10T16:30:24Z","updated_at":"2015-11-08T20:41:31Z","closed_at":null,"body":"I posted a full description of the issue here: http://stackoverflow.com/q/32506879/329700. Gist of the issue is, I want to boot two Docker containers inside an Ubuntu instance, and then run a command on the Ubuntu instance that interacts with the running containers. No matter how hard I try I can't get the command to run after the Docker containers have started. Maybe the Docker `run` command is occurring after *all* provisioning steps?\r\n\r\nIf the correct answer is \"works as designed\" then fine with me, I will figure out another workaround. \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/154868754","html_url":"https://github.com/mitchellh/vagrant/issues/6255#issuecomment-154868754","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6255","id":154868754,"user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T20:41:31Z","updated_at":"2015-11-08T20:41:31Z","body":"Hi @kevinburkeshyp \r\n\r\nThank you for opening an issue. It sounds like you are interested in some orchestration, so I would suggest you take a look at [Otto](https://ottoproject.io). \r\n\r\nYou are correct that provisioning takes place before the docker instances have booted, but I think this is the intended behavior. You could possibly inject an upstart script that ran on boot to check if the containers were running and then ran some command if they were."}}