- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用以下文档设置Wordpress:
https://github.com/bitnami/bitnami-docker-wordpress#mount-host-directories-as-data-volumes-with-docker-compose
我的卷主机目录在docker-compose文件中如下所示:
volumes:
- './mariadb_data:/bitnami'
...
volumes:
- './wordpress_data:/bitnami'
docker-compose up
时,发生以下错误:
mariadb_1 | INFO ==> Starting mysqld_safe...
mariadb_1 | Could not open required defaults file: /opt/bitnami/mariadb/conf/my.cnf
mariadb_1 | Fatal error in defaults handling. Program aborted
mariadb_1 | WARNING: Defaults file '/opt/bitnami/mariadb/conf/my.cnf' not found!
mariadb_1 | Could not open required defaults file: /opt/bitnami/mariadb/conf/my.cnf
mariadb_1 | Fatal error in defaults handling. Program aborted
mariadb_1 | WARNING: Defaults file '/opt/bitnami/mariadb/conf/my.cnf' not found!
mariadb_1 | 171105 05:15:41 mysqld_safe Logging to '/opt/bitnami/mariadb/data/200101d1b330.err'.
mariadb_1 | 171105 05:15:41 mysqld_safe Starting mysqld daemon with databases from /opt/bitnami/mariadb/data
mariadb_1 | /opt/bitnami/mariadb/bin/mysqld_safe_helper: Can't create/write to file '/opt/bitnami/mariadb/data/200101d1b330.err' (Errcode: 2 "No such file or directory")
myproject_mariadb_1 exited with code 1
volumes:
- 'mariadb_data:/bitnami'
...
volumes:
- 'wordpress_data:/bitnami'
docker-compose up
有效。
docker-compose up
现在可以正常工作,并且主机目录已正确填充。
最佳答案
检查 bitnami/bitnami-docker-mariadb
issue 123是否与您的情况相关:
It seems that docker-compose up did not create a container from scratch (with a clean filesystem), but instead used one preexisting. I deduce this from the beginning sequence:
Starting mariadb_mariadb_1
Attaching to mariadb_mariadb_1
...
It seems to me that this container, in its previous execution, was started with an attached volume at
/bitnami/mariadb
. After that, the container was stopped, such volume detached, and then the container was restarted. It didn't configure anything and just tried to run the mysql server binary. Since we perform symbolic links from/opt/bitnami/mariadb
pointing to/bitnami/mariadb
(my.cnf
file included), that file went missing and the binaries crashed at start time.Could you please try using the docker-compose file we provide in this repo? If you only modify it for adding environment variables you shouldn't run into these kind of issues.
As a workaround, just run the following:
docker-compose down -v
docker-compose up
It will remove the the MariaDB container, along with any volume associated, and start from scratch. Bear in mind that you will lose any state you set in the container.
关于wordpress - Bitnami的Wordpress Docker设置的持久性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47118477/
我有一个托管在 www.example.com 上的网站,它是一个 Bitnami 应用程序。 我想在 www.example.com/blog 上可以访问的同一台服务器上安装另一个 bitnami
启动 django 或 ipython notebook 时出现以下问题 /opt/bitnami/python/bin/.python2.7.bin:加载共享库时出错:libreadline.so.
我目前有一台运行 Cherokee 的服务器,但我的软件有很多问题,需要来自其他服务器(主要是 Apache)的特定技术,我正在考虑切换到 Bitnami 堆栈,因为我有一些不同的软件(Wordpre
我正在尝试在 Bitnami 准备的 VM 上配置 MySQL 进行复制(不要与 Bitnami 的 MySQL 复制混淆),但我遇到了二进制日志记录问题。 当我在 [mysqld] 下的 my.cn
Bitnami 和 Docker 在基于容器的部署方面有何不同。 我最近一直在学习微服务。我使用 Docker 镜像将我的应用程序作为容器运行。而且,我注意到 Bitnami 在从其启动板的云上创建虚
我们开始在工作中使用 Redmine。我知道它使用 MySQL 作为数据库,使用 Apache 2 作为 Web 服务器。如何正确备份Redmine,以便在出现问题时可以快速重新加载? 最佳答案 这将
Bitnami 堆栈默认启用页面速度。在开发过程中不会使用它。如何禁用 bitnami 堆栈中的 pagespeed? 最佳答案 在 lampstack-x.x.x/apache2/conf/page
我正在尝试启用“翻译”插件dokuwiki和对Dokuwiki Bitnami图像的其他一些更改。例如,我向Dokuwiki Bitnami镜像的'lib / tpl / dokuwiki'添加了一个
我正在使用 helm bitnami 图表将我的应用程序部署在 kubernetes 中。 我的应用程序包含以下 3 个组件, 网页用户界面网络应用程序接口(interface)1网络应用程序接口(i
所以我有这个 Bitnami EC2 实例,默认情况下其中有项目“Project”(位于/apps/django/django_projects),所以我开始遵循 django 教程并完成了所有操作。
我对计算机一窍不通,但我设法在自己的机器上使用了 Django 框架。我在 Amazon Web Service (AWS) 上拥有一个帐户已有一段时间了,但它的设置和使用似乎相当复杂,所以我暂时搁置
所以我在 AWS 上设置了 bitnami ruby 然后我用它来设置 mysql 5.6 https://www.digitalocean.com/community/tutorials/how
我在 EC2 实例上有 bitnami 堆栈,我想关闭 魔术引号,但是在 php.ini 我找不到关闭的选项。我已经看到如何通过代码关闭魔术引号,但如果我这样做了 echo 'Value for '.
我有一个应用程序可以在以前版本的 WAMP 堆栈上运行。Apache 中有一些更改,当应用程序在该堆栈上时这些更改不相关,但现在是。这也会阻止应用程序在当前堆栈上运行。 要让它工作,我需要旧版本的 W
我正在使用 BitNami GitLab Stack 5.2.0在 VirutalBox 中运行。 服务器时间回来了,但我不能使用标准的 Ubuntu 建议: Time Synchronization
我正在运行一些 Bitnami LAMP 堆栈,到目前为止它非常方便,并且大多数事情都按预期工作。 我一直在寻找有关如何更新 Apache、MySQL 和 PHP 的信息。它们安装在/opt/bitn
在 Azure“容器的 Web 应用程序”服务中,我有以下 docker-compose.yml 文件。基于此:https://github.com/bitnami/bitnami-docker-mo
我可以让我的Apache Kafka生产者在容器中运行时发送消息。但是,当我的生产者在主机中的容器外部运行时,它不起作用。我怀疑这是我的Docker撰写文件存在Docker网络问题,但我无法弄清楚。
我正在尝试将一个kafka实例放入docker容器中。 docker-compose.yml看起来像这样: version: '2' services: zookeeper: image:
我已经在kubernetes中部署了mongodb分片集群。 通过:helm install my-release bitnami/mongodb-sharded,默认功能为2个分片,每个分片只有1个
我是一名优秀的程序员,十分优秀!