Modify Docker logging under DSM 7.0

Currently reading
Modify Docker logging under DSM 7.0

Dear Docker experts,

I am running HomeAssistant under Docker on DSM 7.0. To avoid frequent HDD access, I want to disable docker logging. But how to do so?

I modified:

/var/packages/Docker/etc/dockerd.json

to

"log-driver" : "none"

and the

containers's json config file uploaded to the Docker GUI
(/var/packages/Docker/etc/CONTANER_NAME.config)

adding

"log-driver": "none",

but to no effect. Docker still stubbornly writes every five minutes or so into containerID/log.db.

Please help

Best,

Stefan
 
Solution
Solved.
Thank you fredbert!

Documentation:

Place files docker-compose.yml and resolv.conf (see below) e.g. into /volume1/docker/homeassistant

Then via Terminal:

$ cd /volume1/docker/homeassistant
$ sudo -i
# docker-compose up -d



docker-compose.yml:

version: "3.9"

services:
home_assistant:
container_name: homeassistant
restart: always
image: homeassistant/home-assistant:latest
volumes:
- /tmp/homeassistant/config:/config
environment:
- TZ=Europe/London
network_mode: host
logging:
driver: none

resolv.comf

nameserver 192.168.178.1
nameserver 8.8.8.8
domain fritz.box
Solved.
Thank you fredbert!

Documentation:

Place files docker-compose.yml and resolv.conf (see below) e.g. into /volume1/docker/homeassistant

Then via Terminal:

$ cd /volume1/docker/homeassistant
$ sudo -i
# docker-compose up -d



docker-compose.yml:

version: "3.9"

services:
home_assistant:
container_name: homeassistant
restart: always
image: homeassistant/home-assistant:latest
volumes:
- /tmp/homeassistant/config:/config
environment:
- TZ=Europe/London
network_mode: host
logging:
driver: none

resolv.comf

nameserver 192.168.178.1
nameserver 8.8.8.8
domain fritz.box
 
Upvote 0
Solution

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Looks like I triggered you somehow with my post: it was not my intention. I have no idea whether bash or...
Replies
4
Views
387
Use bind volumes, and the CM Project feature. Hyper Backup can then backup the volumes, and with a copy of...
Replies
2
Views
315
Those are two different layers: one is the management ui to perform actions on the api. the other is the...
Replies
12
Views
534
Thanks for your replies, but I found the solution: I had to allow port 8083 in the firewall.
Replies
5
Views
491
Thank you for this - I'll give it a go and see where I get - worst case I learn something as I go!
Replies
6
Views
600
I have no idea what you are doing, but I just tested it based on the instructions of the guide you linked...
Replies
11
Views
1,357
Of course you can, and indeed as @Rusty already advised Gluetun is the way to go. I use it without issues...
Replies
5
Views
673

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top