driver.docker: tiny: debug messages output task name instead of image name

This commit is contained in:
Kenjiro Nakayama 2016-08-21 19:51:32 +09:00
parent 7f18074637
commit b06c6d9311

View file

@ -414,9 +414,9 @@ func (d *DockerDriver) createContainer(ctx *ExecContext, task *structs.Task,
},
}
d.logger.Printf("[DEBUG] driver.docker: using %d bytes memory for %s", hostConfig.Memory, task.Config["image"])
d.logger.Printf("[DEBUG] driver.docker: using %d cpu shares for %s", hostConfig.CPUShares, task.Config["image"])
d.logger.Printf("[DEBUG] driver.docker: binding directories %#v for %s", hostConfig.Binds, task.Config["image"])
d.logger.Printf("[DEBUG] driver.docker: using %d bytes memory for %s", hostConfig.Memory, task.Name)
d.logger.Printf("[DEBUG] driver.docker: using %d cpu shares for %s", hostConfig.CPUShares, task.Name)
d.logger.Printf("[DEBUG] driver.docker: binding directories %#v for %s", hostConfig.Binds, task.Name)
// set privileged mode
hostPrivileged := d.config.ReadBoolDefault("docker.privileged.enabled", false)