Make commands.go more idiomatic.

 Use DockerConn only when needed, keep io.Writer when not