簡體   English   中英

將 Docker 容器鏈接到卷

[英]Link Docker Container to Volumes

我目前有一個使用 Drupal-VM vagrant 盒子和 VirtualBox 的 Drupal 代碼庫。 我想遷移到 docker 但我不知道如何將它與我現有的代碼庫集成。

誰能幫我? I have followed instructions from Docker Hub - Drupal Install Steps and MySQL and Drupal Container to spin up mysql and Drupal images but how do I make it point to my pre-existing codebase?


以前的帖子有更多細節、問題和背景:

在啟動 docker 容器后,您可以使用docker cp docker cp docs將現有代碼復制到容器

至於數據庫,您可以將其導入 mysql 容器

將容器鏈接到卷,在啟動容器時使用-v標志

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM