From f7916c0cffd3e9b9c1f541c4b7cebfc72ceaf05a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 3 Dec 2013 14:38:38 -0800 Subject: [PATCH] provisioners/docker: output for each image pulling --- plugins/provisioners/docker/docker_client.rb | 1 + templates/locales/en.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/provisioners/docker/docker_client.rb b/plugins/provisioners/docker/docker_client.rb index 40c3094c5..535c6e9fc 100644 --- a/plugins/provisioners/docker/docker_client.rb +++ b/plugins/provisioners/docker/docker_client.rb @@ -10,6 +10,7 @@ module VagrantPlugins def pull_images(*images) @machine.communicate.tap do |comm| images.each do |image| + @machine.ui.info(I18n.t("vagrant.docker_pulling_single", name: image)) comm.sudo("docker images | grep -q #{image} || docker pull #{image}") end end diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 97b596e9e..084efc3b9 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -47,6 +47,8 @@ en: Installing Docker onto machine... docker_pulling_images: Pulling Docker images... + docker_pulling_single: |- + -- Image: %{name} docker_running: |- -- Container: %{name} docker_starting_containers: