Advertisement
sandervanvugt

EX180 june21 day1

Jun 22nd, 2021
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. 1 git clone https://github.com/sandervanvugt/ex180
  2. 2 cd ex180/
  3. 3 ls
  4. 4 cd ..
  5. 5 cat /etc/redhat-release
  6. 6 free -m
  7. 7 df -h
  8. 8 lscpu
  9. 9 sudo podman search ubi
  10. 10 sudo podman search ubi | less
  11. 11 sudo podman pull ubi8/ubi
  12. 12 sudo podman images
  13. 13 podman images
  14. 14 sudo podman login registry.access.redhat.com
  15. 15 history
  16. 16 git clone https://github.com/sandervanvugt/ex180
  17. 17 cd ex180/
  18. 18 ls
  19. 19 cd ..
  20. 20 git clone https://github.com/sandervanvugt/luth
  21. 21 cd luth
  22. 22 ./countdown 12
  23. 23 podman run ubi8
  24. 24 podman ps
  25. 25 podman ps -a
  26. 26 podman run ubi8/ubi echo hello world
  27. 27 podman ps
  28. 28 podman ps -a
  29. 29 podman run nginx
  30. 30 podman search nginx
  31. 31 podman login docker.io
  32. 32 podman run nginx
  33. 33 podman run quay.io/bitnami/nginx
  34. 34 podman run -d quay.io/bitnami/nginx
  35. 35 podman ps
  36. 36 podman run -it ubi8/ubi /bin/bash
  37. 37 podman ps
  38. 38 history
  39. 39 podman ps
  40. 40 podman exec -it hardcore_williamson /bin/bash
  41. 41 podman run -d quay.io/bitnami/nginx
  42. 42 podman ps
  43. 43 sudo ip a
  44. 44 podman inspect -l
  45. 45 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  46. 46 sudo podman run -d nginx
  47. 47 sudo podman run -d quay.io/bitnami/nginx
  48. 48 sudo podman ps
  49. 49 sudo ip a
  50. 50 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  51. 51 podman run -it busybox sh
  52. 52 podman run -it quay.io/busybox sh
  53. 53 podman run -it ubi8/ubi sh
  54. 54 podman ps
  55. 55 ps fax
  56. 56 ps -ef
  57. 57 pstree
  58. 58 sudo pstree
  59. 59 ps fax | grep runc
  60. 60 podman ps
  61. 61 sudo podman ps
  62. 62 podman search mariadb
  63. 63 sudo podman run registry.redhat.io/rhscl/mariadb-101-rhel7
  64. 64 sudo podman login registry.redhat.io
  65. 65 sudo podman run registry.redhat.io/rhscl/mariadb-101-rhel7
  66. 66 sudo podman ps
  67. 67 sudo podman ps -a
  68. 68 sudo podman logs wonderful_mclaren
  69. 69 sudo podman run -d -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mariadb-101-rhel7
  70. 70 sudo podman ps
  71. 71 ./countdown 12
  72. 72 sudo vim /etc/containers/registries.conf
  73. 73 podman images
  74. 74 sudo podman images
  75. 75 podman rmi registry.access.redhat.com/ubi8/ubi
  76. 76 podman rmi registry.access.redhat.com/ubi8
  77. 77 sudo podman pull rhscl/mysql-57-rhel7:5.7
  78. 78 sudo podman run registry.access.redhat.com/rhscl/mysql-57-rhel7:5.7
  79. 79 sudo podman run registry.access.redhat.com/rhscl/mysql-57-rhel7
  80. 80 sudo yum install -y skopeo
  81. 81 skopeo inspect registry.access.redhat.com/rhscl/mysql-57-rhel7:5.7
  82. 82 skopeo inspect docker://registry.access.redhat.com/rhscl/mysql-57-rhel7
  83. 83 podman run bitnami/nginx --name newnginx
  84. 84 podman run --name newnginx bitnami/nginx
  85. 85 podman run -d --name newnginx bitnami/nginx
  86. 86 podman run -d --name newnginx2 bitnami/nginx
  87. 87 podman ps
  88. 88 podman exec -it newnginx2 sh
  89. 89 podman diff newnginx2
  90. 90 podman commit newnginx2
  91. 91 podman images
  92. 92 history
  93. 93 ./countdown 18
  94. 94 podman ps
  95. 95 podman inspect newnginx2 | less
  96. 96 podman image inspect quay.io/bitnami/nginx
  97. 97 podman image inspect quay.io/bitnami/nginx | less
  98. 98 ls -Zd /home/ansible
  99. 99 podman search mysql
  100. 100 sudo podman pull registry.access.redhat.com/rhscl/mysql-57-rhel7
  101. 101 sudo podman inspect registry.access.redhat.com/rhscl/mysql-57-rhel7 | less
  102. 102 sudo mkdir /srv/dbfiles
  103. 103 ls -ld /srv/dbfiles
  104. 104 ls -ldZ /srv/dbfiles
  105. 105 sudo chown -R 27:27 /srv/dbfiles
  106. 106 ls -ldZ /srv/dbfiles
  107. 107 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
  108. 108 ls -ldZ /srv/dbfiles
  109. 109 sudo restorecon -Rv /srv/dbfiles
  110. 110 man semanage-fcontext
  111. 111 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-57-rhel7
  112. 112 ls -l /srv/dbfiles/
  113. 113 history
  114. 114 mkdir dbfiles
  115. 115 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-57-rhel7
  116. 116 mkdir /home/ansible/dbfiles
  117. 117 podman ps
  118. 118 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-57-rhel7
  119. 119 cd
  120. 120 ls -ld dbfiles/
  121. 121 podman run -d -v /home/ansible/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-57-rhel7
  122. 122 ls -ldZ dbfiles/
  123. 123 ls dbfiles/
  124. 124 podman ps -a
  125. 125 podman logs unruffled_montalcini
  126. 126 luth/countdown 12
  127. 127 sudo podman run -d -p 8088:80 nginx
  128. 128 sudo podman ps
  129. 129 curl localhost:8088
  130. 130 cd ex180/
  131. 131 la
  132. 132 ls
  133. 133 cd sample-dockerfile/
  134. 134 history | grep git
  135. 135 ls
  136. 136 vim Dockerfile
  137. 137 podman build -t nmap .
  138. 138 podman images
  139. 139 podman run localhost/nmap
  140. 140 history
  141.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement