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

Wenchat about the evolution history of my network

Hear about the evolution of my network. My GCP costs $46.35 per month, and the current free trial balance is $111.05, I've almost spent $300, and I'm about to move back to a self-managed host.

d-laravel,docker

D-Laravel v1.2.1 version change description (recommended update, must avoid stepping on thunder)

D-Laravel v1.2.1 revision instructions use GuzzleHttp\Client; When posting, there is an access denied problem. If you are upgrading from an older version, you may need to adjust the configuration file in etc/default-ssl.conf (if there is one) Please adjust php:9000 to web:9000, you can adjust it by executing ./console secure once. In the docker-compose configuration file, change the PHP-FPM container to network_mode: "service:web"...

docker,cli

Docker container formatted display

I think if you want to write some automation functions, it may be useful to be able to format the output container content. The following are some reference examples of Docker container formatting and display instructions