My changes may not be quite correct, but as far as I can tell, DOCKER_OPTIONS now requires specifying a phase explicitly. Also updated references to `--link` since `-link` has been deprecated in Docker.