diff --git a/client/driver/docker.go b/client/driver/docker.go index cbb6e2e8e..6c1390aa1 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -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)