pseiffert/composercontainer (optional - this step is performed by Docker automatically when running the container):
$ docker pull pseiffert/composer
Define an bash alias that runs this container whenever
composeris invoked on the command line:
$ echo "alias composer='docker run --rm -it -v $(pwd):/opt/workspace pseiffert/composer'" >> ~/.bashrc $ source ~/.bashrc
Run composer as always:
$ composer install
For more information, see my article on medium.com about this.