Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. cat /etc/containers/registries.d/default.yaml | grep sigstore
  2. # sigstore: indicates a location that is read and write
  3. # sigstore-staging: indicates a location that is only for write
  4. # sigstore and sigstore-staging take a value of the following:
  5. # sigstore: {schema}://location
  6. # sigstore: file:///var/lib/atomic/sigstore
  7. sigstore-staging: file:///var/www/html/
  8. # sigstore: http://privateregistry.com/sigstore/
  9. # sigstore-staging: /mnt/nfs/privateregistry/sigstore
  10.  
  11. cat /etc/containers/registries.d/docker.io-fatherlinux.yaml
  12. docker:
  13. docker.io/fatherlinux:
  14. sigstore: file:///var/www/html
  15.  
  16.  
  17. # Simple Demo
  18.  
  19. docker tag docker.io/fatherlinux/sign-test:latest docker.io/fatherlinux/sign-test:signed
  20. [root@rhel7 software]# atomic push docker.io/fatherlinux/sign-test:signed
  21. Registry Username: fatherlinux
  22. Registry Password:
  23.  
  24. docker run -it docker.io/fatherlinux/sign-test:latest
  25. / # touch /tmp/test
  26. / # exit
  27. [root@rhel7 software]# docker ps -a
  28. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  29. 31b5c900c515 docker.io/fatherlinux/sign-test:latest "sh" 11 seconds ago Exited (0) 3 seconds ago modest_einstein
  30.  
  31. [root@rhel7 software]# docker commit 31b5c900c515 docker.io/fatherlinux/sign-test:unsigned
  32. sha256:4ed6fa71efcf1b09464ebf9094e513519a50cdf6f4850b6d14af38c2fa3dd9fd
  33.  
  34. [root@rhel7 software]# atomic push dock^C.io/fatherlinux/sign-test:signed
  35.  
  36. [root@rhel7 software]# docker push docker.io/fatherlinux/sign-test:unsigned
  37. The push refers to a repository [docker.io/fatherlinux/sign-test]
  38. d49850ef8ebe: Pushed
  39. 8ac8bfaff55a: Layer already exists
  40. unsigned: digest: sha256:ad8a9ca64aca37b5ddae1de61dfdddcee64db0eb2ee784b1265f54ca44b61484 size: 712
  41. (reverse-i-search)`pu': docker ^Csh docker.io/fatherlinux/sign-test:unsigned
  42.  
  43. [root@rhel7 software]# atomic pull docker.io/fatherlinux/sign-test:unsigned
  44. Image docker.io/fatherlinux/sign-test:unsigned is being pulled to docker ...
  45. FATA[0001] Source image rejected: A signature was required, but no signature exist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement