jipot
jipot

Reputation: 94

Running a docker image through Vagrant

My Vagrantfile is is set to run a docker image we will call gitlab/gitlab-ce

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"
  config.vm.provision "docker" do |d|
     d.run "gitlab/gitlab-ce"
  end
end

Running vagrant provision gives me:

Unable to find image 'gitlab/gitlab-ce' locally

Why can it not find my gitlab/gitlab-ce locally?

When I do a docker ps -a I see that gitlab/gitlab-ce is up and running just fine

Upvotes: 0

Views: 753

Answers (1)

Bizmate
Bizmate

Reputation: 1872

Because docker ps lists active containers not images. You need to use a publicly available image or run

docker images

To see images available and built on your machine

Upvotes: 1

Related Questions