sandervanvugt

ex188 june23

Jun 30th, 2023
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.32 KB | None | 0 0
  1. [student@localhost ex188]$ history
  2. 1 sudo subscription-manager register
  3. 2 sudo subscription-manager attach
  4. 3 sudo podman search ubi
  5. 4 sudo podman pull docker.io/redhat/ubi9
  6. 5 sudo podman images
  7. 6 podman images
  8. 7 podman run docker.io/redhat/ubi9
  9. 8 podman ps
  10. 9 podman ps -a
  11. 10 podman run docker.io/redhat/ubi9 echo hello world
  12. 11 podman ps -a
  13. 12 podman run nginx
  14. 13 podman run -d docker.io/library/nginx
  15. 14 podman ps
  16. 15 sudo find . -name "df1a26b046c6*"
  17. 16 cd ./.local/share/containers/storage/overlay-containers/df1a26b046c60fd5d6d5ebcfe108fdd07000183bb8c73442466dc0ba2a8639a3
  18. 17 pwd
  19. 18 ls
  20. 19 ls userdata/
  21. 20 du -hs
  22. 21 cd
  23. 22 ps faux | less
  24. 23 podman run -it ubi9 /bin/bash
  25. 24 podman ps
  26. 25 git clone https://github.com/sandervanvugt/ex180
  27. 26 sudo dnf install -y git
  28. 27 sudo poweroff
  29. 28 sudo subscription-manager attach
  30. 29 sudo dnf repolist
  31. 30 podman run -d nginx
  32. 31 sudo ip a
  33. 32 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  34. 33 podman inspect -l | less
  35. 34 sudo podman run -d nginx
  36. 35 sudo ip a
  37. 36 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  38. 37 podman run -it docker.io/library/busybox
  39. 38 podman ps
  40. 39 podman ps -a
  41. 40 podman run docker.io/library/mariadb
  42. 41 podman ps
  43. 42 podman ps -a
  44. 43 podman logs e0a6
  45. 44 podman rm e0a
  46. 45 podman run -d -e MARIADB_ROOT_PASSWORD=password mariadb
  47. 46 podman ps
  48. 47 podman stop vigilant_bassi
  49. 48 podman rm vigilant_bassi
  50. 49 sudo vim /etc/containers/registries.conf
  51. 50 podman search nginx-122
  52. 51 podman run registry.redhat.io/ubi9/nginx-122
  53. 52 podman login
  54. 53 podman run -d registry.redhat.io/ubi9/nginx-122
  55. 54 podman login registry.redhat.io
  56. 55 podman run -d registry.redhat.io/ubi9/nginx-122
  57. 56 skopeo inspect docker://registry.access.redhat.com/ubi9/nginx-122
  58. 57 sudo dnf provides */skopeo
  59. 58 sudo dnf install skopeo
  60. 59 skopeo inspect docker://registry.access.redhat.com/ubi9/nginx-122
  61. 60 skopeo copy docker://registry.access.redhat.com/ubi9/nginx-122 docker://docker.io/sandervanvugt/sanderginx
  62. 61 podman login docker.io
  63. 62 skopeo copy docker://registry.access.redhat.com/ubi9/nginx-122 docker://docker.io/sandervanvugt/sanderginx
  64. 63 podman images
  65. 64 podman image -h
  66. 65 podman rmi docker.io/library/mariadb:latest
  67. 66 podman image prune
  68. 67 git clone https://github.com/sandervanvugt/ex188
  69. 68 sudo dnf install -y git
  70. 69 git clone https://github.com/sandervanvugt/ex188
  71. 70 cd ex188/
  72. 71 ls
  73. 72 ./countdown 12
  74. 73 history
  75. 74 podman ps
  76. 75 podman exec -it f43 sh
  77. 76 podman search mysql
  78. 77 sudo podman pull registry.redhat.io/rhscl/mysql-57-rhel7
  79. 78 sudo podman login registry.redhat.io
  80. 79 sudo podman pull registry.redhat.io/rhscl/mysql-57-rhel7
  81. 80 sudo podman image inspect registry.redhat.io/rhscl/mysql-57-rhel7 | less
  82. 81 sudo mkdir /srv/dbfiles
  83. 82 sudo chown -R 27:27 /srv/dbfiles
  84. 83 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
  85. 84 sudo restorecon -Rv /srv/dbfiles
  86. 85 ls ldZ /srv/dbfiles/
  87. 86 ls -ldZ /srv/dbfiles/
  88. 87 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mydql-57-rhel7
  89. 88 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
  90. 89 cd
  91. 90 pwd
  92. 91 mkdir dbfiles
  93. 92 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
  94. 93 podman ps
  95. 94 podman ps -a
  96. 95 podman logs peaceful_ardinghelli
  97. 96 ls
  98. 97 ls -ldZ dbfiles/
  99. 98 ls -l dbfiles/
  100. 99 podman run -d -p 8088:80 nginx
  101. 100 podman ps
  102. 101 curl 127.0.0.1:8088
  103. 102 history
  104. 103 cd ex188/
  105. 104 ./countdown 20
  106. 105 sudo podman run -it quay.io/quay/busybox sh
  107. 106 ps aux | grep sleep
  108. 107 podman run -it quay.io/quay/busybox sh
  109. 108 ps aux | grep sleep
  110. 109 sudo podman run -it -u 27 quay.io/quay/busybox sh
  111. 110 ps aux | grep sleep
  112. 111 podman run -it -u 27 quay.io/quay/busybox bash
  113. 112 podman run -it -u 27 quay.io/quay/busybox sh
  114. 113 ps aux | grep sleep
  115. 114 podman ps
  116. 115 podman attacg 04a
  117. 116 podman attach 04a
  118. 117 ps aux | grep 5000
  119. 118 podman top -l user huser args
  120. 119 podman top 04a user huser args
  121. 120 cd
  122. 121 ls
  123. 122 ls -lZ dbfiles
  124. 123 ls -ldZ dbfiles
  125. 124 podman unshare ls -ldZ dbfiles
  126. 125 podman unshare chown 27:27 -R dbfiles
  127. 126 podman unshare ls -ldZ dbfiles
  128. 127 ls -ld dbfiles/
  129. 128 ls -ldZ dbfiles/
  130. 129 history
  131. 130 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
  132. 131 podman ps
  133. 132 ls -lZ dbfiles/
  134. 133 cd ex188/
  135. 134 ls
  136. 135 cd sample-containerfile/
  137. 136 ls
  138. 137 vim Containerfile
  139. 138 docker build -t centmap .
  140. 139 podman build -t centmap .
  141. 140 podman images
  142. 141 vim Containerfile
  143. 142 docker build -t alpmap .
  144. 143 vim Containerfile
  145. 144 docker build -t alpmap .
  146. 145 podman build -t alpmap .
  147. 146 vim Containerfile
  148. 147 podman build -t alpmap .
  149. 148 podman images
  150. 149 vim Containerfile
  151. 150 podman build -t ubimap .
  152. 151 podman images
  153. 152 ../countdown 12
  154. 153 podman run alpmap
  155. 154 sudo podman run alpmap
  156. 155 sudo podman build -t alpmap .
  157. 156 sudo podman run alpmap
  158. 157 vim Containerfile
  159. 158 sudo podman run alpmap sh
  160. 159 vim Containerfile
  161. 160 sudo podman run alpmap sh
  162. 161 sudo podman build -t cmdmap .
  163. 162 sudo podman run cmdmap sh
  164. 163 sudo podman run -it cmdmap sh
  165. 164 cd ..
  166. 165 ls
  167. 166 cd multistage-containerfile/
  168. 167 ls
  169. 168 vim Containerfile
  170. 169 podman build -t multi .
  171. 170 podman run multi:latest
  172. 171 vim Containerfile
  173. 172 sudo dnf install python3-pip
  174. 173 pip3 install podman-compose
  175. 174 cd ..
  176. 175 ls
  177. 176 vim compose.yaml
  178. 177 podman-compose -h | less
  179. 178 podman-compose up -d
  180. 179 podman ps
  181. 180 podman-compose logs -n -f
  182. 181 ls
  183. 182 vim compose.yaml
  184. 183 podman ports
  185. 184 podman port
  186. 185 podman ps
  187. 186 history
  188.  
Advertisement
Add Comment
Please, Sign In to add comment