docker导出日志到本地的方法是什么
254
2022-10-20
docker-compose 安装etcd集群
version: "3.8"networks: etcdcluster: name: etcdclusterservices: node1: image: quay.io/coreos/etcd:v3.4.14 ports: - "12379:2379" volumes: - /etc/localtime:/etc/localtime - /docker/etcd/node1/data:/var/etcd command: > /usr/local/bin/etcd --name node1 --data-dir /var/etcd --listen-client-urls --advertise-client-urls --listen-peer-urls --initial-advertise-peer-urls --initial-cluster node1= --initial-cluster-token etcd-token --initial-cluster-state new --log-level info networks: - etcdcluster node2: image: quay.io/coreos/etcd:v3.4.14 ports: - "22379:2379" volumes: - /etc/localtime:/etc/localtime - /docker/etcd/node2/data:/var/etcd command: > /usr/local/bin/etcd --name node2 --data-dir /var/etcd --listen-client-urls --advertise-client-urls --listen-peer-urls --initial-advertise-peer-urls --initial-cluster node1= --initial-cluster-token etcd-token --initial-cluster-state new --log-level info networks: - etcdcluster node3: image: quay.io/coreos/etcd:v3.4.14 ports: - "32379:2379" volumes: - /etc/localtime:/etc/localtime - /docker/etcd/node3/data:/var/etcd command: > /usr/local/bin/etcd --name node3 --data-dir /var/etcd --listen-client-urls --advertise-client-urls --listen-peer-urls --initial-advertise-peer-urls --initial-cluster node1= --initial-cluster-token etcd-token --initial-cluster-state new --log-level info networks: - etcdcluster
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~