2018-02-05 21:05:59 +00:00
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
2015-07-16 21:14:58 +00:00
|
|
|
|
2015-09-24 20:56:57 +00:00
|
|
|
import (
|
2016-09-06 18:18:12 +00:00
|
|
|
"github.com/docker/docker/api/types"
|
2016-02-10 20:16:59 +00:00
|
|
|
"github.com/docker/docker/api/types/backend"
|
2015-11-12 19:55:17 +00:00
|
|
|
"github.com/docker/docker/container"
|
2015-09-24 20:56:57 +00:00
|
|
|
)
|
2015-07-16 21:14:58 +00:00
|
|
|
|
|
|
|
// This sets platform-specific fields
|
2015-11-12 19:55:17 +00:00
|
|
|
func setPlatformSpecificContainerFields(container *container.Container, contJSONBase *types.ContainerJSONBase) *types.ContainerJSONBase {
|
2015-07-16 21:14:58 +00:00
|
|
|
contJSONBase.AppArmorProfile = container.AppArmorProfile
|
|
|
|
contJSONBase.ResolvConfPath = container.ResolvConfPath
|
|
|
|
contJSONBase.HostnamePath = container.HostnamePath
|
|
|
|
contJSONBase.HostsPath = container.HostsPath
|
|
|
|
|
|
|
|
return contJSONBase
|
|
|
|
}
|
|
|
|
|
2022-05-10 19:59:00 +00:00
|
|
|
func inspectExecProcessConfig(e *container.ExecConfig) *backend.ExecProcessConfig {
|
2016-02-10 20:16:59 +00:00
|
|
|
return &backend.ExecProcessConfig{
|
2016-03-18 18:50:19 +00:00
|
|
|
Tty: e.Tty,
|
|
|
|
Entrypoint: e.Entrypoint,
|
|
|
|
Arguments: e.Args,
|
|
|
|
Privileged: &e.Privileged,
|
|
|
|
User: e.User,
|
2016-02-10 20:16:59 +00:00
|
|
|
}
|
|
|
|
}
|