devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 148 forks source link

Update docker container host files, when no SSH is available #275

Open ProxiBlue opened 4 years ago

ProxiBlue commented 4 years ago

Hello, not an issue, but noting here as other can find of use:

The plugin assumes all containers will have SSH. With docker this is not a reality. I created a new docker communicator, which uses the docker API to effect all the needed SSH commands to docker instances, which then effectively makes this work with any docker based container.

(tested in Linux only)

https://github.com/ProxiBlue/vagrant-communicator-docker