mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-04 08:26:42 +00:00
docker-for-mac: supply the daemon.json via metadata
Previously the docker-for-mac example had a `files` declaration which wrote `/var/config/docker/daemon.json`. This was probably an error because the `/var/config` directory is owned by the `metadata` package. It used to work -- probably by accident -- but doesn't any more. This patch switches to using the metadata package to populate the `daemon.json`. Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
@@ -33,7 +33,7 @@ $ moby build -name docker-for-mac base.yml docker-ce.yml
|
||||
To run the VM with a 500M disk:
|
||||
|
||||
```
|
||||
linuxkit run hyperkit -networking=vpnkit -vsock-ports=2376 -disk size=500M docker-for-mac
|
||||
linuxkit run hyperkit -networking=vpnkit -vsock-ports=2376 -disk size=500M -data ./metadata.json docker-for-mac
|
||||
```
|
||||
|
||||
In another terminal you should now be able to access docker via the socket `guest.00000947` in the state directory (`docker-for-mac-state/` by default):
|
||||
|
@@ -23,11 +23,6 @@ services:
|
||||
"--swarm-default-advertise-addr=eth0",
|
||||
"--userland-proxy-path", "/usr/bin/vpnkit-expose-port",
|
||||
"--storage-driver", "overlay2" ]
|
||||
|
||||
files:
|
||||
- path: /var/config/docker/daemon.json
|
||||
contents: '{ "debug": true }'
|
||||
|
||||
trust:
|
||||
org:
|
||||
- library
|
||||
|
8
blueprints/docker-for-mac/metadata.json
Normal file
8
blueprints/docker-for-mac/metadata.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"docker": {
|
||||
"daemon.json": {
|
||||
"perm": "0644",
|
||||
"content": "{ \"debug\": true }"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user