RobLoach / drush-docker

:whale: Docker Container to run Drush
http://registry.hub.docker.com/u/drush/drush
Other
19 stars 19 forks source link

Mountable ~/.drush directory #18

Open RobLoach opened 8 years ago

RobLoach commented 8 years ago

Expose it as a VOLUME.

JamesWilmot commented 5 years ago

You can expose aliases into container via the following: docker run -it -v $(pwd)/.drush:/root/.drush drush/drush:8 sa

JamesWilmot commented 4 years ago

And if you want to expose SSH key directory this also works:

docker run -it -v $(pwd)/.drush:/root/.drush -v $(pwd)/.ssh:/root/.ssh drush/drush:8 @alias.env urol "administrator" "james.wilmot"