Documentation
¶
Overview ¶
Package docker implements the engine.Runtime interface using the Docker SDK.
Index ¶
- func WaitReady(ctx context.Context, host string, port int, timeout time.Duration) error
- type Runtime
- func (r *Runtime) CopyTo(ctx context.Context, c engine.Container, dest string, src io.Reader) error
- func (r *Runtime) Create(ctx context.Context, spec engine.ContainerSpec) (engine.Container, error)
- func (r *Runtime) Destroy(ctx context.Context, c engine.Container) error
- func (r *Runtime) Exec(ctx context.Context, c engine.Container, cmd []string) ([]byte, error)
- func (r *Runtime) Logs(ctx context.Context, c engine.Container) (io.ReadCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime implements engine.Runtime using the Docker Engine API.
func (*Runtime) Create ¶
Create pulls the image when it is not already available locally, then starts a container.
Click to show internal directories.
Click to hide internal directories.