execute with out inspect first
@@ -3,7 +3,6 @@ package calcium
import (
"bufio"
"context"
- "fmt"
enginetypes "github.com/projecteru2/core/engine/types"
"github.com/projecteru2/core/types"
@@ -32,17 +31,6 @@ func (c *Calcium) ExecuteContainer(ctx context.Context, opts *types.ExecuteConta
return
}
- info, err := container.Inspect(ctx)
- if err != nil {
- responses = append(responses, err.Error())
- return
- }
-
- if !info.Running {
- responses = append(responses, fmt.Sprintf("container %s not running, abort", opts.ContainerID))
- return
- }
-
execConfig := &enginetypes.ExecConfig{
Env: opts.Envs,
WorkingDir: opts.Workdir,
