chore: internal docker package with handy PullImage and CreateContainerWithImagePull methods

This commit is contained in:
Pasha Sviderski committed 2025-09-26 21:24:56 +10:00
1 parent 20cf98d42e
commit 27bbbe7186
4 files changed
+152 -35

No files matched your search

+4
View File
@@ -11,6 +11,10 @@ import (
"github.com/docker/docker/client"
)
type Client struct {
*client.Client
}
// WaitDaemonReady waits for the Docker daemon to start and be ready to serve requests.
func WaitDaemonReady(ctx context.Context, cli *client.Client) error {
// Retry to ping the Docker daemon until it's ready or the context is canceled.