Running long jobs on remote machine with docker-machine Use the -d flag with run command. EG: eval $(docker-machine env feature) docker-compose -f delivery.docker-compose.yml run -d rails rake db:seed