Remove runs "docker rm" on the container
()
| 232 | |
| 233 | // Remove runs "docker rm" on the container |
| 234 | func (c ContainerID) Remove() error { |
| 235 | if Debug { |
| 236 | return nil |
| 237 | } |
| 238 | if string(c) == "" { |
| 239 | return nil |
| 240 | } |
| 241 | return exec.Command("docker", "rm", "-v", string(c)).Run() |
| 242 | } |
| 243 | |
| 244 | // KillRemove calls Kill on the container, and then Remove if there was |
| 245 | // no error. It logs any error to t. |
no test coverage detected