b044ff0f29
Signed-off-by: John Howard <jhoward@microsoft.com> Move process sorter to new file Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Sort containers by id This will not be the most accurate sorting but atleast the list will be consistent inbetween calls. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Allow runtime to be configurable via daemon start This allows people to pass an alternate name or location to the runtime binary to start containers. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Fix state output for containers Return the proper state/status for a container by checking if the pid is still alive. Also fix the cleanup handling in the shim to make sure containers are not left behind. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Properly wait for container start Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
53 lines
1.5 KiB
Go
53 lines
1.5 KiB
Go
package runtime
|
|
|
|
import "errors"
|
|
|
|
func getRootIDs(s *PlatformSpec) (int, int, error) {
|
|
return 0, 0, nil
|
|
}
|
|
|
|
func (c *container) Runtime() string {
|
|
return "windows"
|
|
}
|
|
|
|
func (c *container) Pause() error {
|
|
return errors.New("Pause not supported on Windows")
|
|
}
|
|
|
|
func (c *container) Resume() error {
|
|
return errors.New("Resume not supported on Windows")
|
|
}
|
|
|
|
func (c *container) Checkpoints() ([]Checkpoint, error) {
|
|
return nil, errors.New("Checkpoints not supported on Windows ")
|
|
}
|
|
|
|
func (c *container) Checkpoint(cpt Checkpoint) error {
|
|
return errors.New("Checkpoint not supported on Windows ")
|
|
}
|
|
|
|
func (c *container) DeleteCheckpoint(name string) error {
|
|
return errors.New("DeleteCheckpoint not supported on Windows ")
|
|
}
|
|
|
|
// TODO Windows: Implement me.
|
|
// This will have a very different implementation on Windows.
|
|
func (c *container) Start(checkpoint string, s Stdio) (Process, error) {
|
|
return nil, errors.New("Start not yet implemented on Windows")
|
|
}
|
|
|
|
// TODO Windows: Implement me.
|
|
// This will have a very different implementation on Windows.
|
|
func (c *container) Exec(pid string, spec ProcessSpec, s Stdio) (Process, error) {
|
|
return nil, errors.New("Exec not yet implemented on Windows")
|
|
}
|
|
|
|
// TODO Windows: Implement me.
|
|
func (c *container) Pids() ([]int, error) {
|
|
return nil, errors.New("Pids not yet implemented on Windows")
|
|
}
|
|
|
|
// TODO Windows: Implement me. (Not yet supported by docker on Windows either...)
|
|
func (c *container) Stats() (*Stat, error) {
|
|
return nil, errors.New("Stats not yet implemented on Windows")
|
|
}
|