2016-05-28 3 views
1

をロードすることはできません。Percona 5.6ドッカーイメージは、私がこれまでに少なくとも14時間、この問題に苦しんでいます:(私の/etc/mysql/conf.d/*.cnf

私はドッキングウィンドウにビルドサーバーを構成しています(Percona:5.6)のコンテナをセットアップする必要がありますが、残念なことにPercona Image(Percona)(Percona:Pergen) :5.6)は、* .cnfファイルを/etc/mysql/conf.dの下に正しくロードしません。これはファイルのアクセス許可の問題など、私の問題だと思います。

私は指示に従っていましたイオンは:Docker Hub: Percona Percona Official: Using a custom MySQL configuration file しかし、それは私のためには機能しません、私は非常に多くの間違った方法を試してみました。

ファイル/フォルダのパーミッションは以下の画像のようなものです: *.cnf files inside conf.d folder from hosting server

容器に取り付けられた後、彼らは絵を次のとおりです。 *.cnf files inside /etc/mysql/conf.d inside Container

とドッキングウィンドウ-compose.yamlは以下の通りです: docker-compose.yaml

Official Percona 5.6が提供するデフォルトのmy.cnfは、次のとおりです。

[email protected]:/etc/mysql/conf.d# cat my.cnf 
[mysqld] 
datadir=/var/lib/mysql 
socket=/var/lib/mysql/mysql.sock 

general_log_file  = /var/log/mysql/mysqld.log 
general_log    = 1 

log_bin_trust_function_creators=1 
max-connections = 5000 

max_allowed_packet=32M 

# CACHES AND LIMITS # 
tmp-table-size     = 32M 
max-heap-table-size   = 32M 
query-cache-type    = 0 
query-cache-size    = 0 
max-connections    = 500 
thread-cache-size    = 50 
open-files-limit    = 65535 
table-definition-cache   = 1024 
table-open-cache    = 2048 

# INNODB # 
innodb-flush-method   = O_DIRECT 
innodb-log-files-in-group  = 2 
innodb-log-file-size   = 256M 
innodb-flush-log-at-trx-commit = 1 
innodb-file-per-table   = 1 
innodb-buffer-pool-size  = 128M 


#server_id=1 
#log-bin      = /var/lib/mysql/mysql-bin/mysql-bin 
expire-logs-days    = 14 
sync-binlog     = 1 

# Disabling symbolic-links is recommended to prevent assorted security risks 
symbolic-links=0 

# Settings user and group are ignored when systemd is used (fedora >= 15). 
# If you need to run mysqld under a different user or group, 
# customize your systemd unit file for mysqld according to the 
# instructions in http://fedoraproject.org/wiki/Systemd 
user=mysql 
lower_case_table_names=1 
# Semisynchronous Replication 
# http://dev.mysql.com/doc/refman/5.5/en/replication-semisync.html 
# uncomment next line on MASTER 
;plugin-load=rpl_semi_sync_master=semisync_master.so 
# uncomment next line on SLAVE 
;plugin-load=rpl_semi_sync_slave=semisync_slave.so 

# Others options for Semisynchronous Replication 
;rpl_semi_sync_master_enabled=1 
;rpl_semi_sync_master_timeout=10 
;rpl_semi_sync_slave_enabled=1 

# http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html 
;performance_schema 

# Set default server character set 

character-set-server = utf8 

# Set default server collation 

collation-server = utf8_unicode_ci 

[mysqld_safe] 
log-error=/var/log/mysqld.log 
pid-file=/var/run/mysqld/mysqld.pid 

そして、私のドッキングウィンドウのバージョン: そして、私のカスタマイズは以下の通りである

[[email protected] linux-build-server]$ docker version 
Client: 
Version:  1.11.1 
API version: 1.23 
Go version: go1.5.4 
Git commit: 5604cbe 
Built:  Wed Apr 27 00:34:42 2016 
OS/Arch:  linux/amd64 

Server: 
Version:  1.11.1 
API version: 1.23 
Go version: go1.5.4 
Git commit: 5604cbe 
Built:  Wed Apr 27 00:34:42 2016 
OS/Arch:  linux/amd64 
[[email protected] linux-build-server]$ docker-compose version 
docker-compose version 1.7.1, build 0a9ab35 
docker-py version: 1.8.1 
CPython version: 2.7.9 
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013 
[[email protected] linux-build-server]$ 

答えて

1

ディレクトリは、その理由は次のとおりです。/etc/mysql/conf.dは少なくとも555を持っている必要があります許可。

問題が解決しました。

関連する問題