# Docker Settings

Since the update to Linux Kernel 5.12.2, we can no longer modify the `net.netfilter.nf_conntrack_max` sys config programmatically via the Docker API. If you encounter any network related errors, please increase it to at least 120000.

### Linux

The value `vm_map_max_count` can be permanently changed in `/etc/sysctl.conf`:

```
$ grep vm.max_map_count /etc/sysctl.conf
vm.max_map_count=120000
```

You can also change it via:

```
sysctl -w vm.max_map_count=120000
```

### macOS via Docker for Mac

The value `vm_max_map_count` should be changed within the xhyve virtual machine:

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

Then, log in with *root* and no password and configure the `sysctl` setting:

```
sysctl -w vm.max_map_count=120000
```

### macOS via Docker Toolbox

The value `vm_max_map_count` can be changed  via docker-machine:

```
docker-machine ssh
sudo sysctl -w vm.max_map_count=120000
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://protocol-labs.gitbook.io/testground/master/table-of-contents/docker-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
