1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 18:27:25 +08:00

Increase limits and change ngrok instance

This commit is contained in:
Marcos Lilljedahl 2016-11-14 16:38:57 -03:00
parent 8958b240bf
commit 46f95ce6a5
2 changed files with 3 additions and 3 deletions

View File

@ -47,5 +47,5 @@ Notes:
### How can I connect to a published port from the outside world? ### How can I connect to a published port from the outside world?
We're planning to setup a reverse proxy that handles redirection automatically, in the meantime you can use [ngrok](https://ngrok.com) within PWD running `docker run -d --net=host fnichol/ngrok "-log-level debug 127.0.0.1:<port>"` where `"<port>"` is the published service port. After that check the created container logs to look for the *.ngrok.io URL so it can be used in the browser and that's it. We're planning to setup a reverse proxy that handles redirection automatically, in the meantime you can use [ngrok](https://ngrok.com) within PWD running `docker run -d --net=host jpetazzo/ngrok "-log-level debug 127.0.0.1:<port>"` where `"<port>"` is the published service port. After that check the created container logs to look for the *.ngrok.io URL so it can be used in the browser and that's it.

View File

@ -83,8 +83,8 @@ func ResizeExecConnection(execId string, ctx context.Context, cols, rows uint) e
func CreateInstance(net string, dindImage string) (*Instance, error) { func CreateInstance(net string, dindImage string) (*Instance, error) {
h := &container.HostConfig{NetworkMode: container.NetworkMode(net), Privileged: true} h := &container.HostConfig{NetworkMode: container.NetworkMode(net), Privileged: true}
h.Resources.PidsLimit = int64(150) h.Resources.PidsLimit = int64(500)
h.Resources.Memory = 512 * Megabyte h.Resources.Memory = 4092 * Megabyte
t := true t := true
h.Resources.OomKillDisable = &t h.Resources.OomKillDisable = &t