Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
docs: provide sysctl information for OSX Docker native
Browse files Browse the repository at this point in the history
Add documentation snippet for setting vm.max_map_count on OSX Docker native xhyve vm.

References #15
  • Loading branch information
tylerjl authored and dliappis committed Oct 25, 2016
1 parent a2a8aab commit 288248a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Available tags:

## Host Prerequisites

### Linux and [Docker for Mac](https://docs.docker.com/engine/installation/mac/#/docker-for-mac)
### Linux

`vm.max_map_count` sysctl must be set to at least `262144`

Expand All @@ -28,6 +28,20 @@ vm.max_map_count=262144

And apply the setting using: `sysctl -w vm.max_map_count=262144`

### OSX with [Docker for Mac](https://docs.docker.com/engine/installation/mac/#/docker-for-mac)

The `vm_max_map_count` setting must be set within the xhyve virtual machine:

```shell
$ screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
```

Log in with 'root' and no password.
Then configure the `sysctl` setting as you would for Linux:

```shell
sysctl -w vm.max_map_count=262144
```

### OSX with [Docker Toolbox](https://docs.docker.com/engine/installation/mac/#docker-toolbox)

Expand Down

0 comments on commit 288248a

Please sign in to comment.