by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

On my Synolog Nas, a strange logging driver called db was run by default.
How to modify it to a normal json-file?

In Synolog's Nas, his Daemon config file is special, and it is placed in the /var/packages/Docker/etc/ directory.
Called dockerd.json.

1. Enter the editor
vi /var/packages/Docker/etc/dockerd.json
Add "log-driver": "json-file"


2. Restart Docker Daemon
synoservice --restart pkgctl-Docker

3. View the default Logging driver settings
docker info|grep Logging


Fourth, the actual test function
docker-comose logs -f

I can see it normally, there is something...


Supplement: I often use commands on synology
For example, to list all the service names on the Synology NAS.
synoservice --list
To find Docker, you can query in uppercase
synoservice --list|grep Docker
pkgctl-Docker

If you want to overload nginx settings, you can use
synoservice --reload nginx

Use help to view related settings
synoservice --help

Tags: docker Synology

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


docker, tinkerwell, tinker, laravel

Application of Tinkerwell and docker environment

In fact, I don't use Tinkerwell recently because it keeps costing me money to update. If you want to test the direct ssh host, it’s done, isn’t it?

d-laravel, docker, laravel, docker-compose

D-Laravel v1.0.0 release change description

In order to allow the container to be used more flexibly, D-Laravel has released version v1.0.0, which is not backward compatible. https://github.com/DevinY/dlaravel/releases/tag/v1.0.0 If you are using before v1.0.0, you need to modify the .env file of the Laravel project, change DB_HOST=127.0.0.1 to DB_HOST=db If you have a custom docker-compose-custom.yml file....more

docker,phpenv

Unable to ping host.docker.internal on Linux

You can check with docker version, confirm that the version is Docker v20.10+, you can add extra_hosts as follows: