Skip to content

Commit

Permalink
List all available images
Browse files Browse the repository at this point in the history
  • Loading branch information
vv9k committed Dec 3, 2021
1 parent 5b9146f commit f3ec2af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ impl DockerWorker {
},
EventRequest::Image(event) => match event {
ImageEvent::List(opts) => {
let opts = opts.unwrap_or_default();
let opts = opts.unwrap_or_else(|| {
ImageListOpts::builder().all(true).digests(true).build()
});
match docker.images().list(&opts).await {
Ok(images) => {
EventResponse::Image(ImageEventResponse::List(images))
Expand Down

0 comments on commit f3ec2af

Please sign in to comment.