Fix #1330 and #1149. Improve CMD, ENTRYPOINT, and attach docs.