gpt4 book ai didi

ubuntu - 如何在 ubuntu 14.04 中将 glusterfs 卷挂载到/var/lib/docker

转载 作者:行者123 更新时间:2023-12-02 19:12:44 25 4
gpt4 key购买 nike

我在 ubuntu 14.04 上安装了 gluster-server 和 docker

# install Glusterfs
sudo apt-get update;
sudo apt-get install -y python-software-properties;
sudo add-apt-repository -y ppa:gluster/glusterfs-3.6;
sudo apt-get update;
sudo apt-get install -y glusterfs-server;

gluster peer probe $NODE1_DNS;
gluster volume create file_store_docker replica 2 transport tcp $NODE1_DNS:/brickdocker $PUBLIC_DNS:/brickdocker force;
gluster volume start file_store_docker;
sudo mkdir /var/lib/docker;
mount -t glusterfs $PUBLIC_DNS:/file_store_docker /var/lib/docker;

# install Docker with AUFS
sudo apt-get update;
sudo apt-get -y install linux-image-extra-$(uname -r);
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -";
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list";
sudo apt-get update;
sudo apt-get -y install lxc-docker;

当我跑下线时

sudo docker run -p 80:80 --name docker-wordpress-nginx -d eugeneware/docker-wordpress-nginx



我收到了这条消息:

Error response from daemon: error creating aufs mount to /var/lib/docker/aufs/mnt/0b78a98c13f26eebcdef6517654ff80bdf6b35f433ac06be632aa55e8f3bb4a1-init: file too large



你能帮我理解这个错误吗?如何在 ubuntu 14.04 中将 glusterfs 卷挂载到/var/lib/docker

最佳答案

我遇到了同样的错误,幸运的是我发现:
Can several nodes access mounted docker containers

所以我停止了 docker :

sudo service docker stop

在/etc/default/docker 中添加:
DOCKER_OPTS="-s devicemapper"

sudo service docker start

这对我有用,希望对你也有用。

关于ubuntu - 如何在 ubuntu 14.04 中将 glusterfs 卷挂载到/var/lib/docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31697861/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com