Fix dotcloud support

Docker-DCO-1.1-Signed-off-by: Sam Alba <sam.alba@gmail.com> (github: samalba)
Merge pull request #360 from dotcloud/fix-dotcloud

Fix dotcloud support