provisioners/docker: output for each image pulling

This commit is contained in:
Mitchell Hashimoto 2013-12-03 14:38:38 -08:00
parent ecbd0bfa85
commit f7916c0cff
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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: