Can we build Micro VMs with Dockerfile? : Answer is Yes !!!

Answer is : ####Slim
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…


This content originally appeared on DEV Community and was authored by manish srivastava

Answer is : ####Slim
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.

Slim currently supports Virtualbox, KVM, and hyperkit (MacOS only) as providers for running VMs. Slim will discover all available providers, defaulting to virtualbox, if more than one provider is available. The -p flag can be used to force Slim to use a specific provider.

You can find repo here

GitHub logo ottomatica / slim

Build and run tiny vms from Dockerfiles. Small and sleek.

slim | Build Status dependencies Status

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.

Using slim

Build a micro-vm

Create a micro-vm from a Dockerfile. Use build command with a directory containing a Dockerfile.

$ slim build images/alpine3.8-simple

build

This will add a bootable iso in the slim registry. See example Dockerfile.

slim build will use your default provider unless the -p flag is specified (ie -p hyperkit).

Listing micro-vm images

See a list of micro-vm images on your machine.

$ slim images

images command

Running a micro-vm

Provision a new instance…

Click here for joining my team


This content originally appeared on DEV Community and was authored by manish srivastava


Print Share Comment Cite Upload Translate Updates
APA

manish srivastava | Sciencx (2021-07-06T14:59:02+00:00) Can we build Micro VMs with Dockerfile? : Answer is Yes !!!. Retrieved from https://www.scien.cx/2021/07/06/can-we-build-micro-vms-with-dockerfile-answer-is-yes/

MLA
" » Can we build Micro VMs with Dockerfile? : Answer is Yes !!!." manish srivastava | Sciencx - Tuesday July 6, 2021, https://www.scien.cx/2021/07/06/can-we-build-micro-vms-with-dockerfile-answer-is-yes/
HARVARD
manish srivastava | Sciencx Tuesday July 6, 2021 » Can we build Micro VMs with Dockerfile? : Answer is Yes !!!., viewed ,<https://www.scien.cx/2021/07/06/can-we-build-micro-vms-with-dockerfile-answer-is-yes/>
VANCOUVER
manish srivastava | Sciencx - » Can we build Micro VMs with Dockerfile? : Answer is Yes !!!. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/06/can-we-build-micro-vms-with-dockerfile-answer-is-yes/
CHICAGO
" » Can we build Micro VMs with Dockerfile? : Answer is Yes !!!." manish srivastava | Sciencx - Accessed . https://www.scien.cx/2021/07/06/can-we-build-micro-vms-with-dockerfile-answer-is-yes/
IEEE
" » Can we build Micro VMs with Dockerfile? : Answer is Yes !!!." manish srivastava | Sciencx [Online]. Available: https://www.scien.cx/2021/07/06/can-we-build-micro-vms-with-dockerfile-answer-is-yes/. [Accessed: ]
rf:citation
» Can we build Micro VMs with Dockerfile? : Answer is Yes !!! | manish srivastava | Sciencx | https://www.scien.cx/2021/07/06/can-we-build-micro-vms-with-dockerfile-answer-is-yes/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.