mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 05:12:03 +00:00 
			
		
		
		
	demo: Add a disk to the etcd image
etcd works better with a persistent storage. So configure a disk and add the formatting container to the image. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
		| @@ -14,6 +14,13 @@ onboot: | ||||
|     capabilities: | ||||
|      - CAP_SYS_ADMIN | ||||
|     readonly: true | ||||
|   - name: format | ||||
|     image: "mobylinux/format:53748000acf515549d398e6ae68545c26c0f3a2e" | ||||
|     binds: | ||||
|      - /dev:/dev | ||||
|     capabilities: | ||||
|      - CAP_SYS_ADMIN | ||||
|      - CAP_MKNOD | ||||
| services: | ||||
|   - name: rngd | ||||
|     image: "mobylinux/rngd:3dad6dd43270fa632ac031e99d1947f20b22eec9@sha256:1c93c1db7196f6f71f8e300bc1d15f0376dd18e8891c8789d77c8ff19f3a9a92" | ||||
| @@ -35,12 +42,15 @@ services: | ||||
|   - name: etcd | ||||
|     image: "mobylinux/etcd" | ||||
|     capabilities: | ||||
|      - CAP_NET_BIND_SERVICE | ||||
|      - CAP_CHOWN | ||||
|      - CAP_SETUID | ||||
|      - CAP_SETGID | ||||
|      - CAP_DAC_OVERRIDE | ||||
|      - CAP_SYS_ADMIN | ||||
|      - CAP_MKNOD | ||||
|     net: host | ||||
|     binds: | ||||
|      - /dev:/dev | ||||
| outputs: | ||||
|   - format: kernel+initrd | ||||
| #  - format: gcp | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|             "Plugin": "instance-hyperkit", | ||||
|             "Properties": { | ||||
|                 "Moby": "etcd", | ||||
|                 "Disk" : 0, | ||||
|                 "Disk" : 1024, | ||||
|                 "CPUs" : 1, | ||||
|                 "Memory" : 1024 | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user