[Answered ]-Vagrant managed docker container doesn't start

2👍

I had the same problem but adding option

d.create_args = ["-i"]

solved my problem

0👍

I spent the day try to get the docker machine running.. finally got it working. Here is what I have in my vangrantfile, hope this can at least get you started:

config.vm.provider :docker do |d|
    d.image = "paintedfox/postgresql"
    d.name = "db"
    d.cmd = ["/sbin/my_init", "--enable-insecure-key"]
end

vagrant status returns me this:

Current machine states:
dev running (docker)

Another solution that you can try is to remove all your existing images and start fresh, it could be that your image is broken.

Leave a comment