Capistrano is an open source tool for running scripts on multiple servers. It’s primary use is for easily deploying applications. While it was built specifically for deploying Rails apps, it’s pretty simple to customize it to deploy other types of applications.
capifony is a deployment recipes collection that works with both symfony and Symfony2 applications.
For simplicity you can install a script inside you PATH, for example in /usr/local/bin/cap, which executes the above command.
You can use the script at https://raw.githubusercontent.com/jcrombez/capifony-docker/master/cap.sh for this.