Skip to content

Commit aa2c116

Browse files
hacdiasgitbook-bot
authored andcommitted
GitBook: [master] 2 pages modified
1 parent 8886d71 commit aa2c116

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* [Analyzing test run results](analyzing-the-results/README.md)
2626
* [Capturing profiles](analyzing-the-results/capturing-profiles.md)
2727
* [Debugging test plans](debugging-test-plans.md)
28+
* [Docker Settings](docker-settings.md)
2829

2930
## Runner library
3031

docker-settings.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Docker Settings
2+
3+
4+
5+
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.
6+
7+
### Linux
8+
9+
The value `vm_map_max_count` can be permanently changed in `/etc/sysctl.conf`:
10+
11+
```
12+
$ grep vm.max_map_count /etc/sysctl.conf
13+
vm.max_map_count=120000
14+
```
15+
16+
You can also change it via:
17+
18+
```text
19+
sysctl -w vm.max_map_count=120000
20+
```
21+
22+
### macOS via Docker for Mac
23+
24+
The value `vm_max_map_count` should be changed within the xhyve virtual machine:
25+
26+
```text
27+
$ screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
28+
```
29+
30+
Then, log in with _root_ and no password and configure the `sysctl` setting:
31+
32+
```text
33+
sysctl -w vm.max_map_count=120000
34+
```
35+
36+
### macOS via Docker Toolbox
37+
38+
The value `vm_max_map_count` can be changed via docker-machine:
39+
40+
```text
41+
docker-machine ssh
42+
sudo sysctl -w vm.max_map_count=120000
43+
```
44+
45+
46+

0 commit comments

Comments
 (0)