HiveBrain v1.2.0
Get Started
← Back to all entries
snippetdockerMinor

How to enable debug mode for Docker client on Windows 10?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
enabledockerdebugmodeclientforwindowshow

Problem

By default, Docker client is not in debug mode. How to enable it?

> docker info

    ..
    Debug Mode (client): false
    Debug Mode (server): true
    ..


If I try following docker --help

docker -D version


I get indeed

Debug Mode (client): true
Debug Mode (server): true


But then, how can I access log messages? The following for example does not seem to bring any debug statements to the console:

PS U:\> docker -D -l debug pull ubuntu:16.04
16.04: Pulling from library/ubuntu
75c416ea735c: Pull complete
c6ff40b6d658: Pull complete
a7050fc1f338: Pull complete
f0ffb5cf6ba9: Pull complete
be232718519c: Pull complete
Digest: sha256:a0ee7647e24c8494f1cf6b94f1a3cd127f4
Status: Downloaded newer image for ubuntu:16.04

Solution

Eventually, using the docker -D -l debug setting for the client I have found the log outputs (apparently currently there are no debug level messages implemented as reported.

C:\Users\user\AppData\Local\Docker\log.txt

Code Snippets

C:\Users\user\AppData\Local\Docker\log.txt

Context

StackExchange DevOps Q#1527, answer score: 1

Revisions (0)

No revisions yet.