func stopAndDeleteDevice(deviceSn string, docker *dc.DockerClient) error { container := "device" + deviceSn err := docker.KillContainer(container) if err != nil { return err } err = docker.RemoveContainer(container) return nil }