Remove the API container struct and use env

This change touches docker logs, attach, and start -a along with get
exit code in the client.

Fixes #6202

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)