Remove unused code (docker ps)
This commit is contained in:
parent
d0b59cb411
commit
75d2a81e2b
2 changed files with 0 additions and 24 deletions
|
|
@ -16,20 +16,6 @@ func newCli() (*client.Client, error) {
|
|||
return client.NewClientWithOpts(client.FromEnv)
|
||||
}
|
||||
|
||||
func Ps() ([]types.Container, error) {
|
||||
cli, err := newCli()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return containers, nil
|
||||
}
|
||||
|
||||
func Run(image string, cmd []string, mounts []mount.Mount) (string, error) {
|
||||
cli, err := newCli()
|
||||
if err != nil {
|
||||
|
|
|
|||
Reference in a new issue