How to use docker with drupal and drush?

前端 未结 8 1663
日久生厌
日久生厌 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.

提交回复
热议问题