to give the docker container access to devices like /dev/<..> you may need
to use flags

so try to get that the comman line you need then you can tell vagrant to
use that.

https://www.vagrantup.com/docs/docker/configuration.html#cmd

Alvaro

On Sun, Dec 10, 2017 at 11:30 AM, Alvaro Miranda Aguilera <[email protected]
> wrote:

> what happens if you replace
>
> d.image = "aia/dev"
>
> to the docker image you want to use?
>
> Alvaro.
>
> On Sun, Dec 10, 2017 at 6:35 AM, Nimrod Morag <[email protected]>
> wrote:
>
>>
>>
>> On Friday, December 8, 2017 at 11:47:04 AM UTC+2, Alvaro Miranda Aguilera
>> wrote:
>>>
>>> helllo
>>>
>>> more info please.
>>>
>>> are you on a Linux host with docker installed?
>>>
>> Yes. Ubuntu 16
>>
>>
>>> Can you share a sample minimal Vagrantfile you use?
>>>
>>
>> Vagrant.configure(2) do |config|
>>     config.vm.provider "docker" do |d|
>>          d.image = "aia/dev"
>>          d.has_ssh = true
>>          d.name = "vagrant_aia_dev"
>>          d.create_args = ["-dit"]
>>     end
>>
>>     config.vm.network "public_network"
>>     config.ssh.forward_x11 = true
>> end
>>
>>
>>
>>
>>
>>
>>
>>
>>> Alvaro
>>>
>>> On Thu, Dec 7, 2017 at 1:50 PM, Nimrod Morag <[email protected]>
>>> wrote:
>>>
>>>> I'm part of a team developing a machine learning application.
>>>>
>>>> currently we're using Vagrant with a Docker provider as a uniform dev
>>>> environment.
>>>>
>>>> We want to utilize the GPUs on our computers when we play around during
>>>> development, and I found that Nvidia released nvidia-docker to enable that
>>>> without needing to map the devices seperately in each host.
>>>>
>>>> How can I use nvidia-docker as a provider for Vagrant?
>>>>
>>>> If not possible, how can I dynamically retreive the device names on the
>>>> host when running `vagrant up`?
>>>>
>>>>
>>>> (didn't specify versions because I will change to whatever version the
>>>> solution requires)
>>>>
>>>> --
>>>> This mailing list is governed under the HashiCorp Community Guidelines
>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in
>>>> violation of those guidelines may result in your removal from this mailing
>>>> list.
>>>>
>>>> GitHub Issues: https://github.com/mitchellh/vagrant/issues
>>>> IRC: #vagrant on Freenode
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Vagrant" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/vagrant-up/90d488ac-897b-41cb-ae95-e56025e0fdb4%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/vagrant-up/90d488ac-897b-41cb-ae95-e56025e0fdb4%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Alvaro
>>>
>>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/vagrant/issues
>> IRC: #vagrant on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/vagrant-up/5bfe8b6c-f36b-4fa8-be6d-bee8208b72a1%40googlegroups.com
>> <https://groups.google.com/d/msgid/vagrant-up/5bfe8b6c-f36b-4fa8-be6d-bee8208b72a1%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Alvaro
>
>


-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ez6G9eviBx5mfu4Q2ERtqvJ%2B6-jxKTSk9D3-%3DLccv04dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to