# Logs with Docker Container

**URL:** <https://forum.duplicati.com/t/logs-with-docker-container/13698>\
**Category:** Support\
**Created:** [January 5, 2022, 10:24pm UTC](https://forum.duplicati.com/t/logs-with-docker-container/13698 "2022-01-05T22:24:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![narflar](https://forum.duplicati.com/user_avatar/forum.duplicati.com/narflar/32/6654_2.png) [@narflar](https://forum.duplicati.com/u/narflar)\
**Post date:** [January 5, 2022, 10:24pm UTC](https://forum.duplicati.com/t/logs-with-docker-container/13698/1 "2022-01-05T22:24:08Z")

</div>

As the title implies, I’m running Duplicati in a Docker Container. I’m also using Dozzle for live log viewing of all the containers I have installed. Duplicati doesn’t seem to output anything, I assume it’s console logs that Dozzle is capturing.

I played around with the settings in the post [New log system with filters](https://forum.duplicati.com/t/new-log-system-with-filters/2913) but I can’t figure out a way to implement them. Installing the container with the flag “–console-log-level=verbose” just gives me an error. [FATAL tini (7)] exec --console-log-level=verbose failed: No such file or directory

Any assistance would be appriciated.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 10, 2022, 10:00pm UTC](https://forum.duplicati.com/t/logs-with-docker-container/13698/2 "2022-01-10T22:00:05Z")

</div>

Welcome to the forum @narflar

> [@narflar](#):
>
> Any assistance would be appriciated.

I don’t use Docker, but I’ll point to [How to log a backup job to stdout?](https://forum.duplicati.com/t/how-to-log-a-backup-job-to-stdout/3504) where lots of experimenting was done.

> [@narflar](#):
>
> [FATAL tini (7)] exec --console-log-level=verbose failed: No such file or directory

That error message looks like you might have left off the command for Duplicati, and tried to “run” an option.

[https://github.com/duplicati/duplicati/blob/master/Installer/Docker/context/Dockerfile](https://github.com/duplicati/duplicati/blob/master/Installer/Docker/context/Dockerfile) might be the Dockerfile.

[krallin/tini: A tiny but valid `init` for containers](https://github.com/krallin/tini) looks like the ENTRYPOINT, and I think CMD is appended to it.

It’s been some years, and things might have changed, but you could see if this old test still gives any output:

> [@How to log a backup job to stdout?](https://forum.duplicati.com/t/how-to-log-a-backup-job-to-stdout/3504/7):
>
> `docker run duplicaticontainer duplicati-cli <blah>`

If so, then that’s one part of the puzzle solved. The other parts include getting duplicati-server to write stdout. Telling it to append to --log-file=/dev/stdout might get you a seek error. It probably wants a normal file to write.

The other question is – what do you want written? The server normally interacts with the user over HTTP so status and such are given that way. The CLI client is designed for stdout, but it’s not going to work as server.

[Duplicati.Server.exe](https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/#duplicatiserverexe) shows its options (also available in its `help` command). I think it ignores unknown ones.

```plaintext
--log-file: Outputs log information to the file given
--log-level: Determines the amount of information written in the log file

```

are probably the ones to play with. For --log-file, the goal is finding something Duplicati will write and Docker will read. For --log-level, `Warning` will get warnings and errors, but not much of the context CLI client writes. `Information` gives more, but is it too much (e.g. do you really want to log all the file uploads taking place?).

[Reporting options](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#reporting-options) shows lots of other ways to get reports, and they can be fed into several monitoring tools, should you want more features than the raw feed from Duplicati. To get live log, Duplicati [has one](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#viewing-the-duplicati-server-logs) in its GUI.  
[duplicati-client](https://github.com/Pectojin/duplicati-client) goes into the Duplicati server interface from a command-line client if you’re seeking scripting.
