Skip to content

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Aug 15, 2025

A new Linux driver similar to the WSL2 driver for Windows,
creating virtual machines from container images (as rootfs).

Depends-On #3839

make native && ADDITIONAL_DRIVERS=dc make additional-drivers

(this is a draft, until the driver framework has been finalized)


Intended for use with Kata containers or similar runtime

Not related with template://docker, inside the instance.

@afbjorklund afbjorklund force-pushed the dc branch 4 times, most recently from 80ffe35 to 484fd03 Compare August 15, 2025 19:40
@afbjorklund afbjorklund changed the title Docker Container external driver Docker Container external driver for Linux Aug 16, 2025
if l.Instance != nil {
info.InstanceDir = l.Instance.Dir
}
info.DriverName = "dc"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not call it "docker"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway there must be a clear documentation that clarifies how this differs from template://docker

Copy link
Member Author

@afbjorklund afbjorklund Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alternative name for it was Kata Containers, but it was hampered a bit about it (kata) being broken...

Currently there is no way to select the runtime, between runc/runv/runq etc, it is a hardcoded string
But the goal for it was to default to a VM runtime - since it is trying to behave like the Apple Containers

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative names:

  • in-docker
  • docker-as-vmdriver

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just docker is fine because of the context where it will be used: vmType: docker or --vm-type docker.

)

func inspectStatus(instDir string, inst *Instance, y *limayaml.LimaYAML) {
if inst.VMType == limayaml.DC {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code will be moved to the driver

A new macOS driver similar to the WSL2 driver for Windows,
creating virtual machines from container images (as rootfs).

Signed-off-by: Anders F Björklund <[email protected]>
A new Linux driver similar to the WSL2 driver for Windows,
creating virtual machines from container images (as rootfs).

Signed-off-by: Anders F Björklund <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/vmdrivers VM driver infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants