Skip to content

Commit

Permalink
Merge pull request #7416 from greut/bump-go-dockerclient
Browse files Browse the repository at this point in the history
vendor: fsouza/go-docker-client v1.6.3
  • Loading branch information
Mahmood Ali authored Mar 23, 2020
2 parents 6046d15 + 7356e70 commit 382bbbe
Show file tree
Hide file tree
Showing 93 changed files with 3,485 additions and 769 deletions.
6 changes: 4 additions & 2 deletions drivers/docker/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ func (d *Driver) createContainerConfig(task *drivers.TaskConfig, driverConfig *T
StorageOpt: driverConfig.StorageOpt,
VolumeDriver: driverConfig.VolumeDriver,

PidsLimit: driverConfig.PidsLimit,
PidsLimit: &driverConfig.PidsLimit,
}

if _, ok := task.DeviceEnv[nvidiaVisibleDevices]; ok {
Expand Down Expand Up @@ -747,8 +747,10 @@ func (d *Driver) createContainerConfig(task *drivers.TaskConfig, driverConfig *T

// Windows does not support MemorySwap/MemorySwappiness #2193
if runtime.GOOS == "windows" {
var swapiness int64 = 0

hostConfig.MemorySwap = 0
hostConfig.MemorySwappiness = -1
hostConfig.MemorySwappiness = &swapiness
} else {
hostConfig.MemorySwap = task.Resources.LinuxResources.MemoryLimitBytes // MemorySwap is memory + swap.
}
Expand Down
2 changes: 1 addition & 1 deletion jobspec/test-fixtures/basic.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ job "binstore-storagelocker" {
driver = "docker"

lifecycle {
hook = "prestart"
hook = "prestart"
sidecar = true
}

Expand Down
18 changes: 4 additions & 14 deletions vendor/github.com/containerd/continuity/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

176 changes: 176 additions & 0 deletions vendor/github.com/containerd/continuity/fs/copy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 147 additions & 0 deletions vendor/github.com/containerd/continuity/fs/copy_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 382bbbe

Please sign in to comment.