How to package a vagrant box to distribute to a end user with ssh login locked

20 views
Skip to first unread message

Basavaraj Kodgalli

unread,
Jan 13, 2016, 7:34:47 AM1/13/16
to Vagrant
Hi

I have to ship my web app (which required linux flavour only) on a dockerised vagrant box to end users 

I wan to ensure, my end users do not do login to vagrant box using ssh and corrupt any setup accidentally or intentionally (more obviously) 

Any way i can secure my vagrant box from users losing in to it? i am hoping there should be some sort of plugin development possible to help this 

Thanks for pointers

~Basavaraj

Alvaro Miranda Aguilera

unread,
Jan 14, 2016, 12:49:42 AM1/14/16
to vagra...@googlegroups.com
Hello,

Docker images are a simple tar file. By default they don't have (or shouldnt) have ssh.

If you share a Vagrantfile that includes the instructions to run a docker image, then vagrant will use boot2docker and run commands over ssh.

They could run vagrant ssh and connect to the base box where docker run
they could run docker attach/docker exec and run commands on the docker container

so not sure how you would stop them of doping it.

If they mess up the box, vagrant destroy, vagrant up will make the box back to clean state.

perhaps you could elaborate more, or explain the users they shouldbt be sshing into the box for <insert some reason>

Thanks
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/ff678bd8-8d39-487a-ba0f-230d92b14331%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages