From bdd4e82e49ab168d16d3f38eb305ec7d76450a82 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Thu, 5 Dec 2013 22:13:46 -0200 Subject: [PATCH] website/docs: Add an example on how to run multiple containers based off the same image --- website/docs/source/v2/provisioning/docker.html.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/docs/source/v2/provisioning/docker.html.md b/website/docs/source/v2/provisioning/docker.html.md index c35cc8dca..69edb7b38 100644 --- a/website/docs/source/v2/provisioning/docker.html.md +++ b/website/docs/source/v2/provisioning/docker.html.md @@ -110,3 +110,15 @@ Vagrant.configure("2") do |config| end end ``` + +In case you need to run multiple containers based off the same image, you can do +so by providing different names and specifying the `image` parameter to it: + +```ruby +Vagrant.configure("2") do |config| + config.vm.provision "docker" do |d| + d.run "db-1", image: "user/mysql" + d.run "db-2", image: "user/mysql" + end +end +```