1
0
Fork 0
nvwa/service/docker_images.go

16 lines
286 B
Go

package service
import "github.com/docker/docker/api/types"
func (d *docker) ImageList() []types.ImageSummary {
var (
context = d.context
options = types.ImageListOptions{}
)
images, err := d.client.ImageList(context, options)
if err != nil {
panic(err)
}
return images
}