Skip to content

Instantly share code, notes, and snippets.

@devops-school
Created May 30, 2020 21:58
Show Gist options
  • Select an option

  • Save devops-school/56d64ad7f9fe4572729ce8c936787325 to your computer and use it in GitHub Desktop.

Select an option

Save devops-school/56d64ad7f9fe4572729ce8c936787325 to your computer and use it in GitHub Desktop.

Revisions

  1. devops-school created this gist May 30, 2020.
    46 changes: 46 additions & 0 deletions Docker-client-config-json.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    ## Following is a sample config.json file:

    ```json
    {
    "HttpHeaders": {
    "MyHeader": "MyValue"
    },
    "psFormat": "table {{.ID}}\\t{{.Image}}\\t{{.Command}}\\t{{.Labels}}",
    "imagesFormat": "table {{.ID}}\\t{{.Repository}}\\t{{.Tag}}\\t{{.CreatedAt}}",
    "pluginsFormat": "table {{.ID}}\t{{.Name}}\t{{.Enabled}}",
    "statsFormat": "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}",
    "servicesFormat": "table {{.ID}}\t{{.Name}}\t{{.Mode}}",
    "secretFormat": "table {{.ID}}\t{{.Name}}\t{{.CreatedAt}}\t{{.UpdatedAt}}",
    "configFormat": "table {{.ID}}\t{{.Name}}\t{{.CreatedAt}}\t{{.UpdatedAt}}",
    "serviceInspectFormat": "pretty",
    "nodesFormat": "table {{.ID}}\t{{.Hostname}}\t{{.Availability}}",
    "detachKeys": "ctrl-e,e",
    "credsStore": "secretservice",
    "credHelpers": {
    "awesomereg.example.org": "hip-star",
    "unicorn.example.com": "vcbait"
    },
    "stackOrchestrator": "kubernetes",
    "plugins": {
    "plugin1": {
    "option": "value"
    },
    "plugin2": {
    "anotheroption": "anothervalue",
    "athirdoption": "athirdvalue"
    }
    },
    "proxies": {
    "default": {
    "httpProxy": "http://user:[email protected]:3128",
    "httpsProxy": "http://user:[email protected]:3128",
    "noProxy": "http://user:[email protected]:3128",
    "ftpProxy": "http://user:[email protected]:3128"
    },
    "https://manager1.mycorp.example.com:2377": {
    "httpProxy": "http://user:[email protected]:3128",
    "httpsProxy": "http://user:[email protected]:3128"
    },
    }
    }
    ```