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


Synology,haproxy

Use HAProxy to remove the /mail path of the Sysnolgy Mail Station

This article explains the version of DSM7. The Package Center of Synology Nas provides two Mail Servers, one is Synology Mail Server and the other is Synology MailPlus. For me, the advantage of Synology MailPlus is that he can easily specify a domain name in the login portal, but it is limited to a maximum of five accounts, and if there are more accounts, you will have to buy a license. If you use Synoloyg Mail Server, there will be no limit on the number of accounts, but it does not integrate the login portal. If you install the webmail of Mail Station, there will be an additional path of /mail in the directory of the website. Although it is not in the way, but I just do not like it.

docker

Storage and retrieval of Docker image

How to archive the docker image into a tar file and load back the docker image. We can use docker save and docker load.

docker

Install docker-compose on ubuntu

Briefly introduce how I installed docker-compose on ubuntu. Quite easy.