Пример #1
0
func (c *Container) Kill(done chan bool, silent bool) {
	if !silent {
		fmt.Println("Killing", c.Name, "...")
	}

	docker.Kill(c.Name)
	c.Running = false

	done <- true
}
Пример #2
0
func (c *Container) Kill(silent bool, done chan bool) {
	if !silent {
		util.PrintGreen("Killing", c.Name, "...")
	}

	docker.Kill(c.Name)
	c.Running = false

	if done != nil {
		done <- true
	}
}