> For the complete documentation index, see [llms.txt](https://protocol-labs.gitbook.io/testground/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://protocol-labs.gitbook.io/testground/master/table-of-contents/docker-settings.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
