6 "github.com/edwarnicke/exechelper"
9 type Container struct {
13 func (c *Container) run() error {
15 return fmt.Errorf("create volume failed: container name is blank")
18 exechelper.Run(fmt.Sprintf("mkdir -p /tmp/%s/sync", c.name))
19 syncPath := fmt.Sprintf("-v /tmp/%s/sync:/tmp/sync", c.name)
20 cmd := "docker run --cap-add=all -d --privileged --network host --rm "
22 cmd += " --name " + c.name + " hs-test/vpp"
24 err := exechelper.Run(cmd)
26 return fmt.Errorf("create volume failed: %s", err)