mirror of
https://github.com/docker/compose.git
synced 2026-08-31 23:03:55 +00:00
Implement simple ACI run
This commit is contained in:
parent
600feb1e00
commit
3d363643ad
11 changed files with 816 additions and 42 deletions
|
|
@ -2,6 +2,7 @@ package example
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/docker/api/backend"
|
||||
"github.com/docker/api/containers"
|
||||
|
|
@ -31,3 +32,8 @@ func (cs *containerService) List(ctx context.Context) ([]containers.Container, e
|
|||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (cs *containerService) Run(ctx context.Context, r containers.ContainerConfig) error {
|
||||
fmt.Printf("Running container %q with name %q\n", r.Image, r.ID)
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue