Fix Docker 0.7 compatibility