Add hostname path when container is set in 'container' network mode.

Signed-off-by: Liang-Chi Hsieh <viirya@gmail.com>