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

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Resolves #260, #301 and #449
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>
Merge pull request #442 from dnephin/fix_create_container_volumes

Additional validation for container volumes and ports.