From 3372188c41609c883560984eeeb3ec7266ecaac4 Mon Sep 17 00:00:00 2001 From: peanutduck <peanutduck@yahoo.com> Date: Sat, 2 Oct 2021 15:04:05 +0800 Subject: [PATCH] Change log-driver settings --- roles/gitlab/tasks/main.yml | 1 + roles/gitlab_runner/files/daemon.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/gitlab/tasks/main.yml b/roles/gitlab/tasks/main.yml index 79e59b1a5..986381b54 100644 --- a/roles/gitlab/tasks/main.yml +++ b/roles/gitlab/tasks/main.yml @@ -19,6 +19,7 @@ network_mode: host pull: true restart_policy: always + log_driver: journald env: # See https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template # 1. In order to figure out what needs to go into 'idp_cert_fingerprint', run diff --git a/roles/gitlab_runner/files/daemon.json b/roles/gitlab_runner/files/daemon.json index b8194f0ea..85ff0799d 100644 --- a/roles/gitlab_runner/files/daemon.json +++ b/roles/gitlab_runner/files/daemon.json @@ -1,5 +1,6 @@ { "ipv6": true, "fixed-cidr-v6": "fd00::/80", - "cgroup-parent": "docker.slice" + "cgroup-parent": "docker.slice", + "log-driver": "journald" } -- GitLab