Lurker News

Comments (139) 24 threads

saurabhnanda2 replies#
Can someone dumb this down for me? What _exactly_ is going on here?

> slim will build a micro-vm from a Dockerfile. Slim works by building and extracting a rootfs from a Dockerfile, and then merging that filesystem with a small minimal kernel that runs in RAM.
> This results in a real VM that can boot instantly, while using very limited resources. If done properly, slim can allow you to design and build immutable unikernels for running services, or build tiny and embedded development environments.

dharmab1 reply#
Docker images contain a filesystem for an operating system, minus the OS kernel. This project uses Docker to build a tiny OS, extracts all the files out of the Docker image, adds a small OS kernel and re-packages that as a VM image.
RyanShook6 replies#
So why was Docker needed to create a lightweight VM? I thought Docker was supposed to replace VMs.
dradtke#
I assume it's mostly to make it easier for people to test this out with existing stuff. Docker containers are the standard for taking a base image and adding stuff on top of it.
taneq1 reply#
It's a VM for Docker, not a VM using Docker.

Continue this thread — 1 reply

marcosdumay#
If you have a Docker creation script (that many people distribute), you use this tool to turn it into a disk image you can run in a VM.
aiCeivi92 replies#
Working with VM images was PITA, I don't know if anything changed. Having recipe (Dockerfile) and required files in VCS is useful as reference even when setting up bare metal machines. So Docker (and Puppet/Ansible) might have bigger impact on work organisation than on anything else.

Continue this thread — 2 replies

buildbuildbuild5 replies#
Docker containers do not yet offer the same security or “bring your own kernel” flexibility of full VMs, such as access to a CPU’s VT-x features.

Continue this thread — 5 replies

dharmab#
Docker is not intended to replace VMs. It provides lightweight isolation for processes within a host but shares a kernel between processes, and some handy tooling for building images that works well with version control. (Building a CentOS based image is under a dozen LOC in Docker, and a few hundred LOC in Packer+Kickstart.)

Kata Containers (https://katacontainers.io) is more along the lines of a "VM replacement", although it is doing so using VMs.

fenollp1 reply#
Maybe going a bit off tangent here but really let's all agree that Dockerfile.s are just not good enough for building any kind of software through time. There's no lockfile system and caching is just awkward to work with.

Dockerfile.s must be progressively replaced with Nix recipes then we'd get lockfiles, upgradable dependencies, some day even reproducible builds!

sitkack#
Project Nix recipes into Dockerfiles, use the nix hash in the dockerfile name.
juliangoldsmith#
Darch reminds me a bit of Tiny Core Linux. That uses loopback images for packages, and puts them together with UnionFS, IIRC.
Koshkin2 replies#
Well, containers and VMs are two different things (are they not?).
derimagia1 reply#
They are different, yes.
logicallee13 replies#
Do some containers run outside a VM? Docker for example "uses operating-system-level virtualization to develop and deliver software in packages called containers."

Continue this thread — 13 replies

vkaku1 reply#
Yes, but the cool thing is definitely the single system image
eeZah7Ux1 reply#
They seem to do very little that SystemD cannot already do with services and overlayFS, with the added benefit of being already available on most systems.
hn23#
SystemD does not run on Windows which ist still being used in many companies..
oconnore1 reply#
I love that your website is “god arch[itecture].com”. Was that intentional?
pknopf#
lol, nope.

It was a pattern I saw with Hugo and other Go projects.

mathnmusic#
Shameless plug about containers: We recently launched https://cloudcron.polyglot.network

Tell us a Docker image, a command with arguments to run and a cron schedule - and we will execute the task and send its STDOUT to your preferred endpoint (either an email or webhook). We're in beta and are offering 15$ worth of execution time as free trial and would really appreciate HNers giving it a try.
Our blog post has more details: http://polyglot.network/cloudcron

vkaku#
This is great! I really wish we'd always create a single system image for both Docker and Physical/VM, preferably with minimal/no-init.

This is very useful when trying to create a basic datacenter specific distro/deployment, preferably Pixie bootable as well.

AlphaSite#
On the same vain, there is: https://github.com/vmware/vic a docker engine for esx/vsphere.

Note work at VMware but not on this project.

Load more comments