News for hackers. Stuff that matters.
Re:My VM is lighter (and safer) than your container (2017) by xahrepap on Thursday September 08, 2022 @12:29PM (#32767924)
This reminds me: in 2015 I went to Dockercon and one booth that was fun was VMWare's. Basically they had implemented the Docker APIs on top of VMWare so that they could build and deploy VMs using Dockerfiles, etc.

I've casually searched for it in the past and it seems to not exist anymore. For me, one of the best parts of Docker is building a docker-image (and sharing how it was done via git). It would be cool to be able to take the same Dockerfiles and pivot them to VMs easily.

Re:My VM is lighter (and safer) than your container (2017) by llllIIIIllll on Thursday September 08, 2022 @07:52PM (#32773615)
https://github.com/weaveworks/ignite can apparently do this. It looks exciting!
Re:My VM is lighter (and safer) than your container (2017) by xahrepap on Friday September 09, 2022 @09:50AM (#32779203)
This is really cool! Thanks for sharing.

Though the naming is strange since Apache Ignite exists already. But I’m definitely going to play with this.

Re:My VM is lighter (and safer) than your container (2017) by verdverm on Thursday September 08, 2022 @12:31PM (#32767963)
They might have built it into Google Anthos as part of their partnership. I recall seeing a demo where you could deploy & run any* VMWare image on Kubernetes without any changes
Re:My VM is lighter (and safer) than your container (2017) by All4All on Thursday September 08, 2022 @12:36PM (#32768019)
Isn't that essentially what Vagrant and Vagrantfiles do?
Re:My VM is lighter (and safer) than your container (2017) by hinkley on Thursday September 08, 2022 @02:03PM (#32769375)
What is your theory for why Docker won and Vagrant didn't?

Mine is that all of the previous options were too Turing Complete, while the Dockerfile format more closely follows the Principle of Least Power.

Power users always complain about how their awesome tool gets ignored while 'lesser' tools become popular. And then they put so much energy into apologizing for problems with the tool or deflecting by denigrating the people who complain. Maybe the problem isn't with 'everyone'. Maybe Power Users have control issues, and pandering to them is not a successful strategy.

Re:My VM is lighter (and safer) than your container (2017) by duskwuff on Thursday September 08, 2022 @03:03PM (#32770428)
What turned me off from Vagrant was that Vagrant machines were never fully reproducible.

Docker took the approach of specifying images in terms of how to create them from scratch. Vagrant, on the other hand, took the approach of specifying certain details about a machine, then trying to apply changes to an existing machine to get it into the desired state. Since the Vagrantfile didn't (and couldn't) specify everything about that state, you'd inevitably end up with some drift as you applied changes to a machine over time -- a development team using Vagrant could often end up in situations where code behaved differently on two developers' machines because their respective Vagrant machines had gotten into different states.

It helped that Docker images can be used in production. Vagrant was only ever pitched as a solution for development; you'd be crazy to try to use it in production.

Re:My VM is lighter (and safer) than your container (2017) by mmcnl on Thursday September 08, 2022 @05:07PM (#32772099)
Docker is not fully reproducible either. Try building a Docker image from two different machines and then pushing it to a registry. It will always overwrite.
Re:My VM is lighter (and safer) than your container (2017) by egberts1 on Friday September 09, 2022 @08:23AM (#32778260)
Ooooh, “it will always overwrite.”: this is like saying an indirect way of saying that your executable will behave exactly the same if it got overwritten (by a same set of bytes).

Good one.

Re:My VM is lighter (and safer) than your container (2017) by ParetoOptimal on Friday September 09, 2022 @09:06AM (#32778688)
Dockerfiles pervasively use things like `apt-update` and that makes them not reproducible.

Even of your image pins apt or yum, images you depend on likely don't.

Docker is repeatable, not reproducible.

Re:My VM is lighter (and safer) than your container (2017) by hinkley on Monday September 12, 2022 @01:20PM (#32813506)
I’ve read bug threads in the moby GitHub where they reject a feature because it’s not repeatable, while people point out that Docker files start with apt-get so they aren’t repeatable from layer 2 anyway. The team members don’t seem to hear them and it’s frustrating to watch.

Images are repeatable. We like repeatable images. That’s enough for most of us. Don’t break that and we’re good. Just fix build time bullshit please.

Re:My VM is lighter (and safer) than your container (2017) by egberts1 on Friday September 09, 2022 @11:48AM (#32780688)
Yep
Re:My VM is lighter (and safer) than your container (2017) by pphysch on Thursday September 08, 2022 @09:16PM (#32774148)
The easier it is for a technology to accidentally make it into production, the more popular it will be
Re:My VM is lighter (and safer) than your container (2017) by gaocegege on Friday September 09, 2022 @12:28AM (#32775299)
Vagrant images are always huge. But docker images are small. You can deliver and share docker images with ease.
Re:My VM is lighter (and safer) than your container (2017) by fomine3 on Thursday September 08, 2022 @09:52PM (#32774392)
Vagrant never targeted production so not much money/resource/interest invested?
Re:My VM is lighter (and safer) than your container (2017) by xahrepap on Thursday September 08, 2022 @12:51PM (#32768238)
Yes, which is what I'm using now. But it doesn't use the Docker APIs to allow you to (mostly) reuse a dockerfile to build a VM or a container.

not sure if it would be better than Vagrant. But it was still very interesting.

Re:My VM is lighter (and safer) than your container (2017) by mmcnl on Thursday September 08, 2022 @05:06PM (#32772080)
You are talking about declarative configuration of VMs. Vagrant offers that, right?
Re:My VM is lighter (and safer) than your container (2017) by P5fRxh5kUvp2th on Thursday September 08, 2022 @05:31PM (#32772355)
eeeeeh.......

yes, but then again ... no.

I mean ... yes Vagrant does offer that, but no would I ever consider Vagrant configuration anything approaching a replacement for docker configuration.

Re:My VM is lighter (and safer) than your container (2017) by naikrovek on Thursday September 08, 2022 @09:19PM (#32774166)
github.com/cirruslabs/tart does this for macos VMs. you push them to and pull them from OCI registries.