1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-12-16 15:00:36 +00:00

Install Docker daemon config for log exporting

This commit is contained in:
Kris Lamoureux 2020-01-29 13:19:04 -05:00
parent 6fff93cda4
commit cb1d489c6c
Signed by: kris
GPG Key ID: A30022791E1719A4
2 changed files with 8 additions and 0 deletions

2
Vagrantfile vendored
View File

@ -26,6 +26,8 @@ Vagrant.configure("2") do |config|
yum-config-manager --add-repo \ yum-config-manager --add-repo \
https://download.docker.com/linux/centos/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io 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 start docker
systemctl -q enable docker systemctl -q enable docker
usermod -aG docker vagrant usermod -aG docker vagrant

6
docker-daemon.json Normal file
View File

@ -0,0 +1,6 @@
{
"log-driver": "gelf",
"log-opts": {
"gelf-address": "tcp://172.28.128.30:12201"
}
}