Fix the return value of get_tty_width() it should return an int.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Resolves #260 and #301
Adds ~ support and ro mode support for volumes, along with some additional validation.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Some additional validation for container ports, and a couple extra test cases.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>