【问题标题】:Trying to setup lamp and wordpress on kitematic for docker尝试在 kitematic 上为 docker 设置灯和 wordpress
【发布时间】:2014-10-24 18:05:24
【问题描述】:

我正在使用以下 github 存储库在 kitematic 上为 docker 设置图像。

https://github.com/tutumcloud/tutum-docker-lamp

https://github.com/tutumcloud/tutum-docker-wordpress

我将它们都安装为图像。 docker-lamp 给了我一个 hello world 无法连接到本地 mysql 服务器,而 wordpress 根本不工作。

这是按顺序排列的日志

灯日志

https://gist.github.com/anonymous/ad9c56cb817dd619caf8

wordpress 日志

https://gist.github.com/anonymous/225fad3840327dec39ea

【问题讨论】:

  • 禁用“音量”,它会起作用。

标签: php mysql wordpress docker


【解决方案1】:

Wordpress has an official image on docker hub/store。如果您想使用它,最简单的方法是使用 kitematic v0.17.1(它在容器详细信息中有链接/网络选项卡),您甚至可以在 linux 中运行它。您需要下载 Wordpress 和 Mariadb 容器,并在容器之间设置链接,将链接别名设置为“mysql”,以便 Wordpress 容器使用环境变量。

【讨论】:

    【解决方案2】:

    tutum 图像应该开箱即用。

    打开Kitematic,以tutum为关键词搜索tutum图片。找到灯和 wordpress 图像,然后单击创建以创建容器。

    他们应该只是运行。

    希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-23
      • 2019-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-01
      • 2016-10-06
      • 1970-01-01
      相关资源
      最近更新 更多