WithImage sets the provided image as the base for the container
(i Image)
| 88 | |
| 89 | // WithImage sets the provided image as the base for the container |
| 90 | func WithImage(i Image) NewContainerOpts { |
| 91 | return func(ctx context.Context, client *Client, c *containers.Container) error { |
| 92 | c.Image = i.Name() |
| 93 | return nil |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | // WithImageName allows setting the image name as the base for the container |
| 98 | func WithImageName(n string) NewContainerOpts { |
searching dependent graphs…