{"action":"created","issue":{"url":"https://api.github.com/repos/optiopay/klar/issues/108","repository_url":"https://api.github.com/repos/optiopay/klar","labels_url":"https://api.github.com/repos/optiopay/klar/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/optiopay/klar/issues/108/comments","events_url":"https://api.github.com/repos/optiopay/klar/issues/108/events","html_url":"https://github.com/optiopay/klar/issues/108","id":340156912,"node_id":"MDU6SXNzdWUzNDAxNTY5MTI=","number":108,"title":"Can't pull image from docker hub","user":{"login":"Karreg","id":9166144,"node_id":"MDQ6VXNlcjkxNjYxNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/9166144?v=4","gravatar_id":"","url":"https://api.github.com/users/Karreg","html_url":"https://github.com/Karreg","followers_url":"https://api.github.com/users/Karreg/followers","following_url":"https://api.github.com/users/Karreg/following{/other_user}","gists_url":"https://api.github.com/users/Karreg/gists{/gist_id}","starred_url":"https://api.github.com/users/Karreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karreg/subscriptions","organizations_url":"https://api.github.com/users/Karreg/orgs","repos_url":"https://api.github.com/users/Karreg/repos","events_url":"https://api.github.com/users/Karreg/events{/privacy}","received_events_url":"https://api.github.com/users/Karreg/received_events","type":"User","site_admin":false},"labels":[{"id":394174362,"node_id":"MDU6TGFiZWwzOTQxNzQzNjI=","url":"https://api.github.com/repos/optiopay/klar/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-11T09:13:38Z","updated_at":"2018-07-13T09:45:38Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI'm writing this, following the discussion in #1 \r\nI'm testing clair and klar since a few days, and I managed to make it work with a private registry (using Artifactory).\r\n\r\nHowever, when I try to scan an image from docker hub, it does not work. But I did not use DOCKER_USER and DOCKER_PASSWORD\r\n\r\nWhat I don't understand is that in your Readme, you require DOCKER_USER and DOCKER_PASSWORD even for docker hub, but pulling from docker hub does not require authentication.\r\n\r\nIs there something I should know about how klar and clair work, that requires authentication even for docker hub ?\r\n\r\nHere is the command line and the result:\r\n\r\n```\r\nKLAR_TRACE=true CLAIR_ADDR=127.0.0.1:6060 CLAIR_OUTPUT=High CLAIR_THRESHOLD=10 klar debian:9\r\nclair timeout 1m0s\r\ndocker timeout: 1m0s\r\nno whitelist file\r\n----> HTTP REQUEST:\r\nGET /v2/library/debian/manifests/9 HTTP/1.1\r\nHost: registry-1.docker.io\r\nAccept: application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.v1+prettyjws\r\n\r\n\r\nGet error\r\nCan't pull image: Get https://registry-1.docker.io/v2/library/debian/manifests/9: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)\r\n```\r\n\r\nPulling does work:\r\n```\r\ndocker pull debian:9                                                                                                                                    9: Pulling from library/debian\r\n0bd44ff9c2cf: Pull complete \r\nDigest: sha256:b978de83fd0b0fc7e08d00108c8ea6b5314af46a8d508b085e82d76d33c8661a\r\nStatus: Downloaded newer image for debian:9\r\n```\r\n\r\nThanks for the help."},"comment":{"url":"https://api.github.com/repos/optiopay/klar/issues/comments/404783827","html_url":"https://github.com/optiopay/klar/issues/108#issuecomment-404783827","issue_url":"https://api.github.com/repos/optiopay/klar/issues/108","id":404783827,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDc4MzgyNw==","user":{"login":"Karreg","id":9166144,"node_id":"MDQ6VXNlcjkxNjYxNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/9166144?v=4","gravatar_id":"","url":"https://api.github.com/users/Karreg","html_url":"https://github.com/Karreg","followers_url":"https://api.github.com/users/Karreg/followers","following_url":"https://api.github.com/users/Karreg/following{/other_user}","gists_url":"https://api.github.com/users/Karreg/gists{/gist_id}","starred_url":"https://api.github.com/users/Karreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karreg/subscriptions","organizations_url":"https://api.github.com/users/Karreg/orgs","repos_url":"https://api.github.com/users/Karreg/repos","events_url":"https://api.github.com/users/Karreg/events{/privacy}","received_events_url":"https://api.github.com/users/Karreg/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T09:45:38Z","updated_at":"2018-07-13T09:45:38Z","author_association":"NONE","body":"OK, so that means that the temporary token stuff is not working? How can it be traced to find the root cause?\r\nI'll create an account in the meantime, to validate the communication."}}
{"actor":{"display_login":"Karreg"}}