Docker Community Forums

Share and learn in the Docker community.

Set log-opt labels and env of docker daemon using pinata


(Avichalbadaya) #1


I am trying to set log-opt for docker daemon using pinata. Every time I change the vaule using docker set, docker daemon stops responding. Here is the sample commands -

pinata set daemon '{"storage-driver":"aufs","debug":true,"log-driver":"json-file","log-opt":[{"labels":["app"]}]}'

pinata set daemon ‘{“storage-driver”:“aufs”,“debug”:true,“log-driver”:“json-file”,“log-opts”:[“app”]}’

May be I am setting it incorrectly. Please tell me the right way to set log-opt value for docker deamon using pinata. Thanks.

  • the output of:

    • pinata diagnose -u on OSX
      OS X: version 10.11.4 (build: 15E65) version v1.11.1-beta11
      Running diagnostic tests:
      [OK] docker-cli
      [OK] Moby booted
      [OK] driver.amd64-linux
      [OK] vmnetd
      [OK] osxfs
      [OK] db
      [OK] slirp
      [OK] menubar
      [OK] environment
      [OK] Docker
      [OK] VT-x
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc ) - OSX 10.11

(Dave Tucker) #2

@avichalbadaya why do you need to change the log-driver for Docker for Mac?