mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
02309170a5
Signed-off-by: John Howard <jhoward@microsoft.com>
19 lines
565 B
Go
19 lines
565 B
Go
package daemon
|
|
|
|
import (
|
|
containertypes "github.com/docker/docker/api/types/container"
|
|
"github.com/docker/docker/container"
|
|
"github.com/docker/docker/oci"
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
func (daemon *Daemon) createSpec(c *container.Container) (*specs.Spec, error) {
|
|
s := oci.DefaultSpec()
|
|
return (*specs.Spec)(&s), nil
|
|
}
|
|
|
|
// 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
|
|
}
|