2016-03-25 19:38:00 -04:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2016-09-06 14:18:12 -04:00
|
|
|
"github.com/docker/docker/api/types"
|
2016-03-25 19:38:00 -04:00
|
|
|
"github.com/docker/docker/api/types/backend"
|
2016-06-07 03:45:21 -04:00
|
|
|
"github.com/docker/docker/api/types/versions/v1p19"
|
2016-03-25 19:38:00 -04:00
|
|
|
"github.com/docker/docker/container"
|
|
|
|
"github.com/docker/docker/daemon/exec"
|
|
|
|
)
|
|
|
|
|
|
|
|
// This sets platform-specific fields
|
|
|
|
func setPlatformSpecificContainerFields(container *container.Container, contJSONBase *types.ContainerJSONBase) *types.ContainerJSONBase {
|
|
|
|
return contJSONBase
|
|
|
|
}
|
|
|
|
|
|
|
|
// containerInspectPre120 get containers for pre 1.20 APIs.
|
2016-06-07 03:45:21 -04:00
|
|
|
func (daemon *Daemon) containerInspectPre120(name string) (*v1p19.ContainerJSON, error) {
|
|
|
|
return &v1p19.ContainerJSON{}, nil
|
2016-03-25 19:38:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func inspectExecProcessConfig(e *exec.Config) *backend.ExecProcessConfig {
|
|
|
|
return &backend.ExecProcessConfig{
|
|
|
|
Tty: e.Tty,
|
|
|
|
Entrypoint: e.Entrypoint,
|
|
|
|
Arguments: e.Args,
|
|
|
|
}
|
|
|
|
}
|