sandervanvugt

ex180 day1 dec21

Dec 8th, 2021
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.18 KB | None | 0 0
  1. [student@localhost sample-dockerfile]$ history
  2. 1 sudo podman search ubi
  3. 2 podman search ubi
  4. 3 ip a
  5. 4 sudo nmtui
  6. 5 ip a
  7. 6 sudo podman search ubi
  8. 7 sudo podman search ubi | less
  9. 8 sudo podman pull ubi8/ubi
  10. 9 sudo podman login registry.access.redhat.com
  11. 10 podman images
  12. 11 sudo podman images
  13. 12 podman run ubi8
  14. 13 podman ps
  15. 14 podman ps -a
  16. 15 podman run ubi8/ubi echo hello world
  17. 16 podman run nginx
  18. 17 podman run -d nginx
  19. 18 podman ps
  20. 19 podman run -it ubi8/ubi /bin/bash
  21. 20 docker ps
  22. 21 podman ps
  23. 22 podman run -it ubi8/ubi /bin/bash
  24. 23 podman ps
  25. 24 sudo dnf install -y git
  26. 25 git clone https://github.com/sandervanvugt/ex180
  27. 26 cd ex180/
  28. 27 ls
  29. 28 ./countdown 12
  30. 29 sudo vim /etc/containers/registries.conf
  31. 30 podman run -d registry.redhat.io/nginx
  32. 31 podman login registry.redhat.io
  33. 32 podman run -d registry.redhat.io/nginx
  34. 33 history
  35. 34 podman run -d nginx
  36. 35 podman ps
  37. 36 sudo ip a
  38. 37 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  39. 38 sudo podman run -d nginx
  40. 39 sudo ip a
  41. 40 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  42. 41 sudo podman inspect -l | less
  43. 43 sudo ps fax | less
  44. 44 sudo ps faux | less
  45. 45 podman ps
  46. 46 podman exec -it cranky_lumiere /bin/sh
  47. 47 sudo ps faux | less
  48. 48 podman run -it ubuntu
  49. 49 uname -r
  50. 50 sudo podman run mariadb
  51. 51 sudo podman ps -a
  52. 52 sudo podman logs confident_mcnulty
  53. 53 sudo podman run -d -e MYSQL_ROOT_PASSWORD=password mariadb
  54. 54 sudo podman ps
  55. 55 sudo podman images
  56. 56 sudo podman inspect docker.io/library/mariadb | less
  57. 57 sudo podman ps
  58. 58 sudo podman exec mariadb -it
  59. 59 sudo podman exec epic_bartik -it
  60. 60 sudo podman exec -it epic_bartik
  61. 61 sudo podman exec -it epic_bartik sh
  62. 62 ./countdown 12
  63. 63 podman pull quay.io/bitnami/nginx
  64. 64 podman images
  65. 65 sudo podman images
  66. 66 podman image --help
  67. 67 podman --help | less
  68. 68 podman run quay.io/bitnami/nginx:1.14
  69. 69 podman images
  70. 70 podman tag quay.io/bitnami/nginx quay.io/bitnami/nginx:sander
  71. 71 podman images
  72. 72 podman run -it busybox sh
  73. 73 podman ps
  74. 74 podman ps -a
  75. 75 podman ps
  76. 76 podman exec -it modest_ramanujan sh
  77. 77 podman ps
  78. 78 podman run -it busybox sh
  79. 79 podman images
  80. 80 find . -name "a37c1937d977*"
  81. 81 sudo find / -name "a37c1937d977*"
  82. 82 cd ../.local/share/containers/storage/overlay-images/a37c1937d977a728357561cb2979dabc1da42df117da60196f2ff5b8441591fd/
  83. 83 ls
  84. 84 ls -l
  85. 85 cd ..
  86. 86 ls
  87. 87 cd
  88. 88 podman search mysql
  89. 89 sudo podman pull registry.access.redhat.com/rhscl/mysql-57-rhel7
  90. 90 sudo podman images
  91. 91 sudo podman inspect docker.io/library/mariadb
  92. 92 sudo podman inspect docker.io/library/mariadb | less
  93. 93 sudo podman pull quay.io/bitnami/mysql
  94. 94 sudo podman images
  95. 95 sudo podman inspect quay.io/bitnami/mysql | less
  96. 96 sudo mkdir /srv/dbfiles
  97. 97 ls -ld /srv/dbfiles
  98. 98 sudo chown -R 1001:1001 /srv/dbfiles
  99. 99 ls -ld /srv/dbfiles
  100. 100 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
  101. 101 sudo restorecon -Rv /srv/dbfiles
  102. 102 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password quay.io/bitnami/mysql
  103. 103 ls -l /srv/dbfiles
  104. 104 mkdir webfiles
  105. 105 podman run -d -v /home/student/webfiles:/web:Z quay.io/bitnami/nginx
  106. 106 ls -Z webfiles/
  107. 107 ls -Zd webfiles/
  108. 108 podman ps
  109. 109 podman exec dreamy_fermi touch /web/index.html
  110. 110 podman exec dreamy_fermi touch ls -lZ /web
  111. 111 podman exec dreamy_fermi ls -lZ /web
  112. 112 ls -Zd webfiles/
  113. 113 ls -Z webfiles/
  114. 114 ls -Zl webfiles/
  115. 115 history
  116. 116 podman run -d -p 82:80 nginx
  117. 117 podman run -d -p 8080:80 nginx
  118. 118 podman port
  119. 119 podman ps
  120. 120 curl localhost:8080
  121. 121 sudo podman run -it quay.io/quay/busybox sh
  122. 122 ps aux | grep sleep
  123. 123 podman run -it quay.io/quay/busybox sh
  124. 124 ps aux | grep sleep
  125. 125 sudo podman run -it -u 27 quay.io/quay/busybox bash
  126. 126 sudo podman run -it -u 27 quay.io/quay/busybox sh
  127. 127 ps aux | grep sleep
  128. 128 podman run -it -u 27 quay.io/quay/busybox sh
  129. 129 ps aux | grep sleep
  130. 130 less /etc/subuid
  131. 131 sudo podman run -it busybox sh
  132. 132 sudo podman run -it ubi8 sh
  133. 133 ps aux | grep sleep
  134. 134 sudo vim /etc/subuid
  135. 135 podman run -it ubi8 sh
  136. 136 ps aux | grep sleep
  137. 137 podman run -it ubi8 sh
  138. 138 ps aux | grep 7000
  139. 139 podman top -l user huser args
  140. 140 ls -l webfiles/
  141. 141 podman unshare ls webfiles/
  142. 142 podman unshare ls -l webfiles/
  143. 143 history
  144. 144 ex180/countdown 13
  145. 145 sudo dnf provides */Dockerfile
  146. 146 sudo dnf install -y buildah-test
  147. 147 sudo dnf install -y buildah-tests
  148. 148 sudo rpm -ql buildah-test
  149. 149 sudo rpm -ql buildah-tests
  150. 150 cd /usr/share/buildah/test/
  151. 151 ls
  152. 152 cd system/
  153. 153 ls
  154. 154 cd bud
  155. 155 ls
  156. 156 cd ext42
  157. 157 cd exit42
  158. 158 ls
  159. 159 vim Containerfile
  160. 160 cd ..
  161. 161 find . -name Dockerfile -exec ls -l {} \;
  162. 162 less /volume-ownership/Dockerfile
  163. 163 less ./volume-ownership/Dockerfile
  164. 164 cd
  165. 165 cd ex180/
  166. 166 la
  167. 167 ls
  168. 168 cd sample-dockerfile/
  169. 169 vim Dockerfile
  170. 170 podman build -t sanmap:0.1 .
  171. 171 podman images
  172. 172 podman run localhost/sanmap
  173. 173 sudo podman run localhost/sanmap
  174. 174*
  175. 175 sudo podman run localhost/sanmap
  176. 176 sudo podman run --autorestart=yes -p 5000:5000 registry
  177. 177 sudo podman run -p 5000:5000 registry
  178. 178 sudo podman run -d -p 5000:5000 registry
  179. 179 sudo podman ps
  180. 180 docker images
  181. 181 podman images
  182. 182 podman tag -t localhost:5000/localhost/sanmap
  183. 183 podman tag localhost:5000/localhost/sanmap localhost/sanmap
  184. 184 podman tag localhost/sanmap localhost:5000/localhost/sanmap
  185. 185 docker run 9b8c08023533
  186. 186 podman run 9b8c08023533
  187. 187 podman run localhost/sanmap
  188. 188 podman run -it 9b8c08023533 bash
  189. 189 history
  190.  
Advertisement
Add Comment
Please, Sign In to add comment