私はElasticSearchのドッキングバージョンを実行していて、ボリュームを使ってElasticSearchディレクトリをドッカーの外にマップしています。ドッカーのボリュームストレージの複製
私の問題は、/ var/lib/docker/containers /内のドッカーコンテナのサイズが、my/path/to/outside/docker/containerディレクトリにあるファイルと同じ速度で成長していることです。 。ドッカーコンテナの内容が/ path/to ...ディレクトリの内容と同じであることを確認しました。
このデータの重複は正常ですか?
ドッカー情報付属:あなたのドッカ容器内
Server Version: 1.12.1
Storage Driver: devicemapper
Pool Name: docker-253:6-3151143-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 1.123 GB
Data Space Total: 107.4 GB
Data Space Available: 9.204 GB
Metadata Space Used: 2.966 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.145 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2016-06-09)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.10.0-327.36.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.687 GiB
Name: bos-qa-elk-01
ID: CFHQ:37BL:JKQM:E5LC:IYHO:ZO3T:USKV:SGUW:XFYV:3IYJ:K5QD:U5PN
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
127.0.0.0/8
「サイズ」はどのように測定していますか? – Matt
使用しているストレージドライバは何ですか? 'docker info | grep Storage' – Matt
@Matt - Devicemapperのように見えますが、私は上記のドッカー情報を投稿しました。 –