ottomatica / slim

Build and run tiny vms from Dockerfiles. Small and sleek.
Apache License 2.0
2.09k stars 51 forks source link

Attach command #70

Closed mprey closed 4 years ago

mprey commented 4 years ago

Hello,

I am a student at UT Austin in a virtualization class and I was looking to contribute to this project. After using this for a bit, having to C+P the ssh every time to connect to the micro-vm seemed redundant. I was wondering if I could create a slim attach command that would automatically try and connect to the most recent micro-vm provisioned. Alternatively, there could be an additional flag in slim build that would auto-attach to the VM after creation.

What do you think?

EDIT: Adding health checking with this ticket too. Details in PR #73

chrisparnin commented 4 years ago

The proposed slim attach command would be reasonable.

Providing an optional vm-name: slim attach [vm-name] would allow you to connect to other instances.

mprey commented 4 years ago

That sounds great.

In the original post, the flag to auto-attach was supposed to be with run not build, what do you think of this?

chrisparnin commented 4 years ago

yes, auto-attach would make more sense on run.