2016-03-25 19:38:00 -04:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2016-09-08 00:23:56 -04:00
|
|
|
containertypes "github.com/docker/docker/api/types/container"
|
2016-03-25 19:38:00 -04:00
|
|
|
"github.com/docker/docker/container"
|
|
|
|
"github.com/docker/docker/oci"
|
2016-09-27 13:26:59 -04:00
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
2016-03-25 19:38:00 -04:00
|
|
|
)
|
|
|
|
|
2016-09-27 13:26:59 -04:00
|
|
|
func (daemon *Daemon) createSpec(c *container.Container) (*specs.Spec, error) {
|
2016-03-25 19:38:00 -04:00
|
|
|
s := oci.DefaultSpec()
|
2016-09-27 13:26:59 -04:00
|
|
|
return (*specs.Spec)(&s), nil
|
2016-03-25 19:38:00 -04:00
|
|
|
}
|
2016-09-08 00:23:56 -04:00
|
|
|
|
|
|
|
// mergeUlimits merge the Ulimits from HostConfig with daemon defaults, and update HostConfig
|
|
|
|
// It will do nothing on non-Linux platform
|
|
|
|
func (daemon *Daemon) mergeUlimits(c *containertypes.HostConfig) {
|
|
|
|
return
|
|
|
|
}
|