mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 23:30:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			839 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			839 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # Minimal YAML to run a redis server (used at DockerCon'17)
 | |
| # connect: nc localhost 6379
 | |
| kernel:
 | |
|   image: "linuxkit/kernel:4.9.x"
 | |
|   cmdline: "console=ttyS0 console=tty0 page_poison=1"
 | |
| init:
 | |
|   - linuxkit/init:cbd7ae748f0a082516501a3e914fa0c924ee941e
 | |
|   - linuxkit/runc:24dfe632ed3ff53a026ee3fac046fd544434e2d6
 | |
|   - linuxkit/containerd:f1130450206d4f64f0ddc13d15bb68435aa1ff61
 | |
| services:
 | |
|   - name: dhcpcd
 | |
|     image: "linuxkit/dhcpcd:cb96c09a33c166eca6530f166f0f79927c3e83b0"
 | |
|     binds:
 | |
|      - /var:/var
 | |
|      - /tmp/etc:/etc
 | |
|     capabilities:
 | |
|      - CAP_NET_ADMIN
 | |
|      - CAP_NET_BIND_SERVICE
 | |
|      - CAP_NET_RAW
 | |
|     net: host
 | |
|   - name: redis
 | |
|     image: "redis:3.0.7-alpine"
 | |
|     capabilities:
 | |
|      - CAP_NET_BIND_SERVICE
 | |
|      - CAP_CHOWN
 | |
|      - CAP_SETUID
 | |
|      - CAP_SETGID
 | |
|      - CAP_DAC_OVERRIDE
 | |
|     net: host
 | |
| outputs:
 | |
|   - format: kernel+initrd
 |