Add swap to the Docker for Mac blueprint

We always had 1G swap to work better with small memory setups, but this
was omitted in the update to LinuxKit.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-09-21 14:50:27 -07:00
parent cc200d296a
commit b52fcb71a1
3 changed files with 8 additions and 4 deletions

View File

@@ -9,10 +9,10 @@ Normally, unless you are running explicitly in a desktop version, LinuxKit image
onboot:
- name: swap
image: linuxkit/swap:<hash>
command: ["swap.sh","--path","/var/external/swap","--size","2G"]
command: ["/swap.sh","--path","/var/external/swap","--size","2G"]
```
Note that you **nust** mount the following:
Note that you **must** mount the following:
* `/var` to `/var` so it can place the swapfile in the right location.
* `/dev` to `/dev` so it can do the right thing for devices