mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
blueprints: update README with DfM instructions
Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
This commit is contained in:
parent
de8608c60e
commit
9d17de13f2
@ -18,3 +18,21 @@ the [examples/](../examples/) directory.
|
|||||||
- BlueMix
|
- BlueMix
|
||||||
- Packet.net
|
- Packet.net
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
|
### Docker for Mac
|
||||||
|
|
||||||
|
An initial blueprint for the open source components of Docker for Mac is available in [docker-for-mac.yml](docker-for-mac.yml). The blueprint has support for controlling `dockerd` from the host via `vsudd` and port forwarding with VPNKit. It requires HyperKit, VPNKit and a Docker client on the host to run. The easiest way to install these at the moment is to install a recent version of Docker for Mac.
|
||||||
|
|
||||||
|
To run the VM with a 500M disk:
|
||||||
|
|
||||||
|
```
|
||||||
|
linuxkit run hyperkit -networking=vpnkit -vsock-ports=2375 -disk size=500M 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):
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker -H unix://docker-for-mac-state/guest.00000947 ps
|
||||||
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user