| 8 | describe: 'docker environment check', |
| 9 | builder: undefined, |
| 10 | async handler(args) { |
| 11 | const docker = new Docker(); |
| 12 | |
| 13 | const images = await docker.listImages(); |
| 14 | const tailchatImages = images.filter((image) => |
| 15 | (image.RepoTags ?? []).some((tag) => tag.includes('tailchat')) |
| 16 | ); |
| 17 | |
| 18 | console.log('Tailchat image list:'); |
| 19 | console.log( |
| 20 | asTable.configure({ delimiter: ' | ' })( |
| 21 | tailchatImages.map((image) => ({ |
| 22 | tag: (image.RepoTags ?? []).join(','), |
| 23 | id: image.Id.substring(0, 12), |
| 24 | size: filesize(image.Size), |
| 25 | })) |
| 26 | ) |
| 27 | ); |
| 28 | |
| 29 | const info = await docker.info(); |
| 30 | console.log('info', info); |
| 31 | }, |
| 32 | }; |