From cb1d489c6c59b9b796ff2f2f4807de2816b1d7d7 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 29 Jan 2020 13:19:04 -0500 Subject: [PATCH] Install Docker daemon config for log exporting --- Vagrantfile | 2 ++ docker-daemon.json | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 docker-daemon.json diff --git a/Vagrantfile b/Vagrantfile index b79887c..e5bbdbe 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -26,6 +26,8 @@ Vagrant.configure("2") do |config| yum-config-manager --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo yum install -y docker-ce docker-ce-cli containerd.io + mkdir -p /etc/docker/ + cp --update /vagrant/docker-daemon.json /etc/docker/daemon.json systemctl start docker systemctl -q enable docker usermod -aG docker vagrant diff --git a/docker-daemon.json b/docker-daemon.json new file mode 100644 index 0000000..3536413 --- /dev/null +++ b/docker-daemon.json @@ -0,0 +1,6 @@ +{ + "log-driver": "gelf", + "log-opts": { + "gelf-address": "tcp://172.28.128.30:12201" + } +}