How to use docker with drupal and drush?

前端 未结 8 1662
日久生厌
日久生厌 2021-01-30 23:40

I\'d like to use drush. It needs to run in the drupal container. There\'s also a drush docker repo. But I have no clue how to make it available whithin the drupal container. It\

相关标签:
8条回答
  • 2021-01-31 00:23

    I think you have two options, you could run the drush/drush container separately and use a shared hold volume so it has access to the files that drupal is going to use.

    Or you could build a new image that contains both drush and drupal. See https://docs.docker.com/engine/userguide/containers/dockerimages/

    You can probably use the Dockerfile for the drush image and the drupal image as guidance.

    0 讨论(0)
  • 2021-01-31 00:25

    Try something like https://github.com/wodby/docker4drupal. For me is very useful and flexible thing to develop Drupal with Docker.

    0 讨论(0)
提交回复
热议问题