On BlueCat DNS/DHCP Servers (BDDS) versions 9.3.3, 9.4.1 and 9.5.0, the Docker service is
configured to use the default json-file
logging driver (instead of
journald
). When setting up a centralized logging server (as
described in Forwarding logs to other services), this means that the
BDDS cannot forward log messages to the locally-configured syslog server.
To configure the Docker servise to allow this, do the following.
Add a configuration file to the BDDS that sets the log driver to journald:
-
Create a the new directory for the configuration file. To do so, run the following command:
mkdir /etc/systemd/system/docker.service.d
-
Within the new
docker.service.d
directory, create a new text file namedd-ddns.conf
and add the following content to it. (You can use any text editor, such asnano
.)[Service] ExecStart= ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --log-driver=journald
Tip: To download a copy of this configuration file in a Zip archive, click here.
When you're done, run the command
systemctl status docker
to check whether the file was created in the correct place. You should receive a warning that the unit file, configuration file, or drop-ins of docker.service have changed.-
Tell Docker to reload the unit file. To do so, run the following command:
systemctl daemon-reload
To verify that the command worked successfully, run the command
systemctl status docker
again. The entry forDrop-In
should be set to the configuration file that you just created.Restart the Docker daemon. To do so, run the following command:
systemctl restart docker
To verify that the command worked successfully, run the command
systemctl status docker
again. Both the entry forDrop-In
and the executeddockerd
command should have the--log-driver=journald
option.Verify that the Docker daemon now uses the option
--log-driver=journald
. To do so, run the following command:docker info --format '{{.LoggingDriver}}
Redeploy the Docker containers on the BDDS so that the containers use the same logging driver. Make sure that you use the same version you used when first deploying each container.
For more details on redeploying the Application container, see Upgrading the Distributed DDNS Application Node.
For more details on redeploying the Data container, see Redeploying a Distributed DDNS Database Node on a BDDS.
For more details on redeploying the Application Node, see Redeploying a Distributed DDNS Service Node on a BDDS.
After deploying, verify that the containers are using the
journald
driver instead ofjson-file
. To do so, run the following command:docker inspect -f '{{.HostConfig.LogConfig.Type}}' <container_name>