Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override --max-connections configuration #2610

Closed
akandratovich opened this issue Feb 15, 2018 · 2 comments
Closed

Override --max-connections configuration #2610

akandratovich opened this issue Feb 15, 2018 · 2 comments

Comments

@akandratovich
Copy link

Expected behavior

For some time, there was an option to configure some properties for Docker. You could place file at path ~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/slirp/max-connections to override max connections.

Actual behavior

Currently, seems it's not working anymore. First, there is no such folder after some update. My docker containers start to drop connections at about 2000. The same configuration I can found for vpnkit from command line.

andrew           11782   0.0  0.1  4394256  16776   ??  S    11:58AM   0:00.46 com.docker.vpnkit --ethernet fd:3 --port fd:4 --introspection fd:5 --diagnostics fd:6 --vsock-path /Users/andrew/Library/Containers/com.docker.docker/Data/connect --host-names docker.for.mac.localhost,docker.for.mac.host.internal --gateway-names docker.for.mac.gateway.internal,docker.for.mac.http.internal --listen-backlog 32 --mtu 1500 --allowed-bind-addresses 0.0.0.0 --http /Users/andrew/Library/Group Containers/group.com.docker/http_proxy.json --dhcp /Users/andrew/Library/Group Containers/group.com.docker/dhcp.json --port-max-idle-time 300 --max-connections 2000 --gateway-ip 192.168.65.1 --host-ip 192.168.65.2 --lowest-ip 192.168.65.3 --highest-ip 192.168.65.254 --log-destination asl

I could not find the way to override it. Where is new database location? Does command line flags have more priority? How to override vpnkit launch flags?

Information

Docker for Mac: version: 17.12.0-ce-mac49 (d1778b704353fa5b79142a2055a2c11c8b48a653)
macOS: version 10.13.3 (build: 17D47)
logs: /tmp/C6F63F2B-3E7B-432B-AC93-83FF0C3424CD/20180215-120659.tar.gz
[OK]     db.git
[OK]     vmnetd
[OK]     dns
[OK]     driver.amd64-linux
[OK]     virtualization VT-X
[OK]     app
[OK]     moby
[OK]     system
[OK]     moby-syslog
[OK]     kubernetes
[OK]     env
[OK]     virtualization kern.hv_support
[OK]     slirp
[OK]     osxfs
[OK]     moby-console
[OK]     logs
[OK]     docker-cli
[OK]     menubar
[OK]     disk
@pgayvallet
Copy link

Hi.

We are not using the DB anymore.

You can still change the setting, though, by adding/editing the vpnKitMaxConnections property in the ~/Library/Group\ Containers/group.com.docker/settings.json file and restarting the app. This will override the default (2000) value for the --max-connections flag.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants