Spinning up a few docker containers in Windows host + Vagrant + Virtualbox environment

21 views
Skip to first unread message

Sorcerer Stone

unread,
Oct 12, 2019, 5:22:46 PM10/12/19
to Vagrant
In native Windows environment, I can use dos boxes to access docker (docker toolbox + Virtualbox) so that I can run one docker container against another related container.

My OS is Win10 pro (with HyperV disabled), Running a Linux environment using Vagrant & Virtualbox. So I am within a guest Ubuntu host and I want to do something similar to the above aka run multiple docker containers (i.e. I would like to run a docker container to interact with the existing running container. How do I achieve in Vagrant environment?
In my host folder, I have a vagrantfile which tells the virtual host to load Ubuntu using Vagrant Up and then I run a docker container. I can't possibly pull up another dos box and try to access the same virtual environment by running the same vagrantfile so that I can run another docker container. Correct?
Can anyone please advise me how I can run multiple docker containers in this mixed Vagrant, Virtualbox, environment? I need 2 docker containers running side-by-side and interacting with each other.
Thanks in advance.

Sorcerer Stone

unread,
Oct 12, 2019, 6:53:22 PM10/12/19
to Vagrant
Hmm, I googled. I think the instructions on this URL seems to be the solution I am looking for.


Am I correct?

Alvaro Miranda Aguilera

unread,
Nov 25, 2019, 4:37:52 PM11/25/19
to vagra...@googlegroups.com
yes

and you can use private network to have connectivity between vms.

for vm to vm in docker to docker, it seems the best is create 2 nodes on docker swarm.. just not sure whats the best for your setup

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 vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/dea7cc4d-48b4-4bd2-a421-e1124200eba3%40googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages