Guest User

Untitled

a guest
Sep 21st, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. [root@clair-server ~]# git clone git@github.com:jgsqware/clairctl.git $GOPATH/src/github.com/jgsqware/clairctl
  2. Cloning into '/src/github.com/jgsqware/clairctl'...
  3. The authenticity of host 'github.com (192.30.253.113)' can't be established.
  4. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
  5. RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
  6. Are you sure you want to continue connecting (yes/no)? yes
  7. Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
  8. Permission denied (publickey).
  9. fatal: Could not read from remote repository.
  10. Please make sure you have the correct access rights and the repository exists.
  11. [root@clair-server ~]#
  12.  
  13. git clone git clone https:// github.com/jgsqware/clairctl.git
  14. export GOPATH=$PATH:~/go
  15. mkdir -p $GOPATH/src/github.com/jgsqware/clairctl
  16. mv clairctl $GOPATH/src/github.com/jgsqware/
  17.  
  18. cd $GOPATH/src/github.com/jgsqware/clairctl
  19. docker-compose up -d postgres
  20.  
  21. [root@clair-server clairctl]# docker-compose exec clairctl clairctl health
  22. Clair: ✔
  23. [root@clair-server clairctl]# clairctl health --log-level debug
  24. 2018-09-19 09:45:27.038127 D | config: No config file used
  25. 2018-09-19 09:45:27.038608 D | clair: requesting health on: http:// localhost:6061/health
  26. 2018-09-19 09:45:27.040779 E | clair: requesting Clair health: Get http:// localhost:6061/health: dial tcp [::1]:6061: getsockopt: connection refused
  27.  
  28. Clair: ✘
  29. [root@clair-server clairctl]#
  30.  
  31. [root@clair-server clairctl]# docker login -u username -p the-password
  32. [root@clair-server clairctl]# docker-compose exec clairctl clairctl analyze my-org/my-container:186 --log-level debug
  33. 2018-09-19 13:49:10.858615 D | config: Using config file: /home/clairctl/clairctl.yml
  34. 2018-09-19 13:49:10.859175 D | dockerdist: Downloading manifest for my-org/my-container:186
  35. 2018-09-19 13:49:10.859395 D | dockerdist: Retrieving repository client
  36. 2018-09-19 13:49:11.240796 D | dockerdist: endpoint.TLSConfig.InsecureSkipVerify: true
  37. client quit unexpectedly
  38. 2018-09-19 13:49:15.415043 C | cmd: retrieving manifest for "my-org/my-container:186": errors:
  39. denied: requested access to the resource is denied
  40. unauthorized: authentication required
  41. [root@clair-server clairctl]#
  42.  
  43. [root@clair-server clairctl]#clairctl analyze my-org/my-container:186 --log-level debug
  44. 2018-09-19 09:51:33.513208 D | config: No config file used
  45. 2018-09-19 09:51:33.513675 D | dockerdist: Downloading manifest for my-org/my-container:186
  46. 2018-09-19 09:51:33.514031 D | dockerdist: Retrieving repository client
  47. 2018-09-19 09:51:37.131535 D | dockerdist: endpoint.TLSConfig.InsecureSkipVerify: true
  48. 2018-09-19 09:51:41.656177 D | dockerdist: manifest type: *schema2.DeserializedManifest
  49. 2018-09-19 09:51:41.656235 D | dockerdist: retrieved schema2 manifest, no verification
  50. 2018-09-19 09:51:41.656286 I | config: retrieving interface for local IP
  51. 2018-09-19 09:51:41.656301 D | config: no interface provided, looking for docker0
  52. 2018-09-19 09:51:41.656830 I | clair: Pushing Layer 1/7 [sha256:605ce]
  53. 2018-09-19 09:51:41.656982 D | clair: Saving sha256:605ce1bd3f3164f2949a30501cc596f52a72de05da1306ab360055f0d7130c32[https:// registry-1.docker.io/v2]
  54. 2018-09-19 09:51:41.657113 D | clair: auth.insecureSkipVerify: true
  55. 2018-09-19 09:51:41.657150 D | clair: request.URL.String(): https:// registry-1.docker.io/v2/my-org/my-container/blobs/sha256:605ce1bd3f3164f2949a30501cc596f52a72de05da1306ab360055f0d7130c32
  56. 2018-09-19 09:51:42.809395 I | clair: pull from clair is unauthorized
  57. 2018-09-19 09:51:43.941475 I | clair: adding layer 1/7 [sha256:605ce]: pushing layer to clair: Post http:// localhost:6060/v1/layers: dial tcp [::1]:6060: getsockopt: connection refused
  58. client quit unexpectedly
  59. 2018-09-19 09:51:43.941545 C | cmd: pushing image "my-org/my-container:186": pushing layer to clair: Post http:// localhost:6060/v1/layers: dial tcp [::1]:6060: getsockopt: connection refused
  60. [root@clair-server clairctl]#
Add Comment
Please, Sign In to add comment