mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Apply suggestions from code review
Co-Authored-By: nickethier <ncethier@gmail.com>
This commit is contained in:
committed by
Nick Ethier
parent
3468880f50
commit
455e75492c
@@ -70,7 +70,7 @@ type dockerCoordinatorConfig struct {
|
||||
// logger is the logger the coordinator should use
|
||||
logger hclog.Logger
|
||||
|
||||
// cleanup marks whether images should be deleting when the reference count
|
||||
// cleanup marks whether images should be deleted when the reference count
|
||||
// is zero
|
||||
cleanup bool
|
||||
|
||||
|
||||
@@ -683,9 +683,7 @@ func (d *Driver) createContainerConfig(task *drivers.TaskConfig, driverConfig *T
|
||||
}
|
||||
|
||||
hostConfig := &docker.HostConfig{
|
||||
// Convert MB to bytes. This is an absolute value.
|
||||
Memory: task.Resources.LinuxResources.MemoryLimitBytes,
|
||||
// Convert Mhz to shares. This is a relative value.
|
||||
CPUShares: task.Resources.LinuxResources.CPUShares,
|
||||
|
||||
// Binds are used to mount a host volume into the container. We mount a
|
||||
|
||||
Reference in New Issue
Block a user