mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 20:31:10 +00:00
Merge pull request #1520 from msteinert/swappiness
Do not attempt to set memory.swappiness to zero
This commit is contained in:
commit
314b2bf797
1 changed files with 4 additions and 2 deletions
|
@ -301,7 +301,8 @@ func (e *engine) runJob(c context.Context, r *Task, updater *updater, client doc
|
|||
Cmd: args,
|
||||
Env: e.envs,
|
||||
HostConfig: dockerclient.HostConfig{
|
||||
Binds: []string{"/var/run/docker.sock:/var/run/docker.sock"},
|
||||
Binds: []string{"/var/run/docker.sock:/var/run/docker.sock"},
|
||||
MemorySwappiness: -1,
|
||||
},
|
||||
Volumes: map[string]struct{}{
|
||||
"/var/run/docker.sock": struct{}{},
|
||||
|
@ -410,7 +411,8 @@ func (e *engine) runJobNotify(r *Task, client dockerclient.Client) error {
|
|||
Cmd: args,
|
||||
Env: e.envs,
|
||||
HostConfig: dockerclient.HostConfig{
|
||||
Binds: []string{"/var/run/docker.sock:/var/run/docker.sock"},
|
||||
Binds: []string{"/var/run/docker.sock:/var/run/docker.sock"},
|
||||
MemorySwappiness: -1,
|
||||
},
|
||||
Volumes: map[string]struct{}{
|
||||
"/var/run/docker.sock": struct{}{},
|
||||
|
|
Loading…
Reference in a new issue