Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.
雾雨 edited this page Sep 10, 2020 · 28 revisions

barrel.conf is the config file, and it should be placed under /etc/eru/

ETCD endpoints config

  • ETCD endpoints addresses is required, you may put multiple address split by a comma
ETCD_ENDPOINTS=http://192.168.0.2:2379,http://192.168.0.3:2379

Barrel hosts

  • The host address of barrel start with protocol schema and split by comma
  • If you want to enable https, you should also provided with tls certs(see section #TLS certs )
  • If you want docker cli to use barrel socket as dockerd socket, you should set it as unix:///var/run/docker.sock, and change dockerd socket to something else
  • If leave black, default value is described below
# the following line is the default host address of barrel, you may leave it blank
BARREL_HOSTS=unix:///var/run/barrel.sock,https://127.0.0.1:8888

Dockerd unix socket path

  • If you want to use barrel unix socket to replace default dockerd unix socket, you should change dockerd unix socket to some value else(under /etc/docker/daemon.json), and also set it here
# the following line is the default value dockerd unix socket path, you may leave it blank
DOCKERD_SOCKET_PATH=/var/run/docker.sock

TLS certs

  • If you want to enable tls certs, fill the fields below
BARREL_TLS_CERT_FILE_PATH=${path-to-cert-file}
BARREL_TLS_KEY_FILE_PATH=${path-to-cert-key-file}
Clone this wiki locally