{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20881","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20881/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20881/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20881/events","html_url":"https://github.com/docker/docker/issues/20881","id":138005314,"number":20881,"title":"Docker inspect/ps errors out when a docker label has boolean value (regression in 1.10.x)","user":{"login":"askfongjojo","id":10874909,"avatar_url":"https://avatars.githubusercontent.com/u/10874909?v=3","gravatar_id":"","url":"https://api.github.com/users/askfongjojo","html_url":"https://github.com/askfongjojo","followers_url":"https://api.github.com/users/askfongjojo/followers","following_url":"https://api.github.com/users/askfongjojo/following{/other_user}","gists_url":"https://api.github.com/users/askfongjojo/gists{/gist_id}","starred_url":"https://api.github.com/users/askfongjojo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/askfongjojo/subscriptions","organizations_url":"https://api.github.com/users/askfongjojo/orgs","repos_url":"https://api.github.com/users/askfongjojo/repos","events_url":"https://api.github.com/users/askfongjojo/events{/privacy}","received_events_url":"https://api.github.com/users/askfongjojo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-02T22:00:05Z","updated_at":"2016-03-02T22:00:05Z","closed_at":null,"body":"I used to be able to use the remote API to set the label to a boolean value and query it with docker inspect or docker ps, using docker CLI client v1.9 or earlier. With v1.10.x, it is failing with this error:\r\n     json: cannot unmarshal bool into Go value of type string\r\n\r\n\r\nThis is the docker create command used to reproduce the issue:\r\n```\r\ncurl -X POST https://$DOCKER_HOST/v1.21/containers/create --cert $DOCKER_CERT_PATH/cert.pem --key $DOCKER_CERT_PATH/key.pem --cacert $DOCKER_CERT_PATH/cert.pem --key $DOCKER_CERT_PATH/key.pem --cacert $DOCKER_CERT_PATH/ca.pem -H 'Content-Type: application/json' --data-binary '{\"Hostname\":\"\",\"Domainname\":\"\",\"User\":\"\",\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"ExposedPorts\":null,\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":null,\"Cmd\":[\"86400\"],\"Image\":\"gliderlabs/alpine:3.1\",\"Volumes\":{\"/drone\":{}},\"WorkingDir\":\"\",\"Entrypoint\":[\"/bin/sleep\"],\"NetworkDisabled\":false,\"MacAddress\":\"\",\"OnBuild\":null,\"Labels\":{\"foo\":false},\"StopSignal\":\"\",\"VolumeDriver\":\"\",\"Memory\":0,\"MemorySwap\":0,\"CpuShares\":0,\"Cpuset\":\"\",\"PortSpecs\":null,\"HostConfig\":{\"Binds\":null,\"ContainerIDFile\":\"\",\"LxcConf\":null,\"Memory\":0,\"MemoryReservation\":0,\"MemorySwap\":0,\"KernelMemory\":0,\"CpuShares\":0,\"CpuPeriod\":0,\"CpusetCpus\":\"\",\"CpusetMems\":\"\",\"CpuQuota\":0,\"BlkioWeight\":0,\"OomKillDisable\":false,\"MemorySwappiness\":-1,\"Privileged\":false,\"PortBindings\":null,\"Links\":null,\"PublishAllPorts\":false,\"Dns\":null,\"DNSOptions\":null,\"DnsSearch\":null,\"ExtraHosts\":null,\"VolumesFrom\":null,\"Devices\":null,\"NetworkMode\":\"\",\"IpcMode\":\"\",\"PidMode\":\"\",\"UTSMode\":\"\",\"CapAdd\":null,\"CapDrop\":null,\"GroupAdd\":null,\"RestartPolicy\":{\"Name\":\"\",\"MaximumRetryCount\":0},\"SecurityOpt\":null,\"ReadonlyRootfs\":false,\"Ulimits\":null,\"LogConfig\":{\"Type\":\"\",\"Config\":null},\"CgroupParent\":\"\",\"ConsoleSize\":[0,0],\"VolumeDriver\":\"\"}}' \r\n```"}}