mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-08 02:10:00 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user