Apply suggestions from code review

Co-Authored-By: nickethier <ncethier@gmail.com>
This commit is contained in:
Michael Schurter
2018-11-19 15:12:30 -05:00
committed by Nick Ethier
parent 3468880f50
commit 455e75492c
2 changed files with 1 additions and 3 deletions

View File

@@ -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

View File

@@ -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