drpanwe

hyperkube upstream image

Nov 20th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. By default it returns a shell:
  2. tux@ultron:~/github/kubernetes/cluster/images/hyperkube> docker run -it k8s.gcr.io/debian-hyperkube-base-amd64:0.12.0
  3. sh-4.4#
  4.  
  5. There are symlinks for: apiserver, kubectl, kubelet, proxy, scheduler
  6.  
  7. lrwxrwxrwx 1 root root 10 Oct 19 23:24 apiserver -> /hyperkube
  8. drwxr-xr-x 1 root root 912 Oct 19 23:25 bin
  9. drwxr-xr-x 1 root root 0 Jun 26 12:03 boot
  10. lrwxrwxrwx 1 root root 10 Oct 19 23:24 cloud-controller-manager -> /hyperkube
  11. lrwxrwxrwx 1 root root 10 Oct 19 23:24 controller-manager -> /hyperkube
  12. drwxr-xr-x 5 root root 360 Nov 20 15:36 dev
  13. drwxr-xr-x 1 root root 1810 Nov 20 15:36 etc
  14. drwxr-xr-x 1 root root 0 Jun 26 12:03 home
  15. lrwxrwxrwx 1 root root 10 Oct 19 23:24 kubectl -> /hyperkube
  16. lrwxrwxrwx 1 root root 10 Oct 19 23:24 kubelet -> /hyperkube
  17. drwxr-xr-x 1 root root 154 Oct 19 23:25 lib
  18. drwxr-xr-x 1 root root 40 Oct 11 00:00 lib64
  19. drwxr-xr-x 1 root root 0 Oct 11 00:00 media
  20. drwxr-xr-x 1 root root 0 Oct 11 00:00 mnt
  21. drwxr-xr-x 1 root root 6 Oct 19 23:25 opt
  22. dr-xr-xr-x 434 root root 0 Nov 20 15:36 proc
  23. lrwxrwxrwx 1 root root 10 Oct 19 23:24 proxy -> /hyperkube
  24. drwx------ 1 root root 0 Oct 18 22:56 root
  25. drwxr-xr-x 1 root root 26 Oct 19 23:25 run
  26. drwxr-xr-x 1 root root 1820 Oct 19 23:25 sbin
  27. lrwxrwxrwx 1 root root 10 Oct 19 23:24 scheduler -> /hyperkube
  28. drwxr-xr-x 1 root root 0 Oct 11 00:00 srv
  29. dr-xr-xr-x 13 root root 0 Nov 20 15:32 sys
  30. drwxrwxrwt 1 root root 0 Oct 19 23:25 tmp
  31. drwxr-xr-x 1 root root 70 Oct 11 00:00 usr
  32. drwxr-xr-x 1 root root 90 Oct 11 00:00 var
  33.  
  34.  
  35. The CMD is part is the following:
  36.  
  37. "Cmd": [
  38. "/bin/sh",
  39. "-c",
  40. "#(nop) COPY file:31e4ddd5c221b63054724ec24849afee6e4dbc386a9cb7f5c8a778ce4a15d255 in /hyperkube "
  41. ],
  42.  
  43. The Dockerfile itself it plain simple:
  44.  
  45. FROM BASEIMAGE
  46.  
  47. # Copy the hyperkube binary
  48. COPY hyperkube /hyperkube
Add Comment
Please, Sign In to add comment