title: get label value from docker inspect
body: <p>I had problem to get the value from the map list due to the key has &quot;.&quot; inside.</p>
  <pre class="lang-sh prettyprint-override"><code>docker inspect jenkins
  </code></pre>
  <pre class="lang-json prettyprint-override"><code>  Config: {
    ..
        &quot;Labels&quot;: {
              &quot;com.docker.compose.config-hash&quot;: &quot;85bcf1e0bcd708120185a303e2a8d8e65543c1ec77ec0c6762fc057dc10320aa&quot;,
              &quot;com.docker.compose.container-number&quot;: &quot;1&quot;,
              &quot;com.docker.compose.oneoff&quot;: &quot;False&quot;,
              &quot;com.docker.compose.project&quot;: &quot;new&quot;,
              &quot;com.docker.compose.service&quot;: &quot;sc2&quot;,
              &quot;com.docker.compose.version&quot;: &quot;1.5.2&quot;
          }
      }
  }
  </code></pre>
  <p>I can get map list</p>
  <pre>
  docker inspect -f {{.Config.Labels}} new_sc2_1
  map[com.docker.compose.config-hash:85bcf1e0bcd708120185a303e2a8d8e65543c1ec77ec0c6762fc057dc10320aa com.docker.compose.container-number:1 com.docker.compose.oneoff:False com.docker.compose.project:new com.docker.compose.service:sc2 com.docker.compose.version:1.5.2]
  </pre>
  <p>But how can I get the project name <code>new</code> from key <code>com.docker.compose.project</code></p>
  <pre><code>docker inspect -f {{.Config.Labels.com.docker.compose.project}} new_sc2_1
  &lt;no value&gt;
  </code></pre>