mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 13:41:19 +00:00 
			
		
		
		
	
			
				
					
						
					
					f2db33dfbb0ecc54fd85d4fed26b51e69a05252a
				
			
			
		
	Make the hyperkit script try harder to find executables
Moby
Moby, a toolkit for custom Linux distributions
Getting Started
Build
Simple build instructions: use make to build.
This will build the Moby customisation tool and a Moby initrd image.
Requirements:
- GNU make
- GNU or BSD tar(not Busybox tar)
- Docker
Booting and Testing
- make qemuwill boot up a sample Moby in qemu in a container
- on OSX: make hyperkitwill boot up Moby in hyperkit, and also download hyperkit and vpnkit binaries for later use
- make testor- make hyperkit-testwill run the test suite
Customise
To customise, copy or modify the moby.yaml to your own file.yaml and then run ./bin/moby file.yaml to
generate its specified output. You can run the output with ./scripts/qemu.sh or ./scripts/hyperkit.sh.
Yaml Specification
The Yaml format is loosely based on Docker Compose:
- kernelspecifies a kernel Docker image, containing a kernel and a filesystem tarball, eg containing modules.- mobylinux/kernelis built from- kernel/
- initis the base- initprocess Docker image, which is unpacked as the base system, containing- init,- containerd,- runcand a few tools. Built from- base/init/
- systemare the system containers, executed sequentially in order. They should terminate quickly when done.
- daemonis the system daemons, which normally run for the whole time
- filesare additional files to add to the image
- outputsare descriptions of what to build, such as ISOs.
For the images, you can specify the configuration much like Compose, with some changes, eg capabilities must be specified in full, rather than add and drop, and
there are no volumes only binds.
The config is liable to be changed, eg there are missing features (specification of kernel command line, more options etc).
Description
				
					Languages
				
				
								
								
									Go
								
								48.2%
							
						
							
								
								
									text
								
								21.2%
							
						
							
								
								
									Shell
								
								14.1%
							
						
							
								
								
									Dockerfile
								
								5.7%
							
						
							
								
								
									OCaml
								
								4.6%
							
						
							
								
								
									Other
								
								6.2%