Advertisement
sandervanvugt

ex180 oct22 day1

Oct 17th, 2022
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. [student@localhost sample-dockerfile]$ history
  2. 1 sudo -i
  3. 2 sudo podman search ubi
  4. 3 sudo podman pull registry.access.redhat.com/ubi8/ubi
  5. 4 sudo cat /etc/containers/registries.conf | less
  6. 5 podman images
  7. 6 sudo podman images
  8. 7 history
  9. 8 podman run ubi8
  10. 9 podman ps
  11. 10 podman ps -a
  12. 11 podman run ubi8/ubi echo hello world
  13. 12 podman ps
  14. 13 podman ps -a
  15. 14 podman run nginx
  16. 15 podman search nginx | less
  17. 16 podman run registry.access.redhat.com/ubi7/nginx-120
  18. 17 podman ps
  19. 18 podman ps -a
  20. 19 podman run bitnami/nginx
  21. 20 podman run -d bitnami/nginx
  22. 21 podman ps
  23. 22 podman run -it ubi8
  24. 23 sudo dnf install -y vim git
  25. 24 sudo subscription-manager
  26. 25 sudo subscription-manager register
  27. 26 sudo subscription-manager attach
  28. 27 sudo dnf install -y vim git
  29. 28 git clone https://github.com/sandervanvugt/ex180
  30. 29 cd ex180/
  31. 30 ls
  32. 31 ./countdown 12
  33. 32 podman ps
  34. 33 ip a
  35. 34 podman inspect frosty_herschel | less
  36. 35 podman inspect frosty_herschel -f {{.NetworkSettings.IPAddress}}"
  37. 36 podman inspect frosty_herschel -f "{{.NetworkSettings.IPAddress}}"
  38. 37 sudo podman run -d docker.io:binami/nginx
  39. 38 sudo podman run -d bitnami/nginx
  40. 39 sudo ip a
  41. 40 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  42. 41 sudo ps faux
  43. 42 podman run -it busybox
  44. 43 docker ps
  45. 44 sudo dnf install docker-podman
  46. 45 sudo dnf install podman-docker
  47. 46 docker ps
  48. 47 sudo podman run mariadb
  49. 48 podman ps
  50. 49 podman ps -a
  51. 50 sudo podman ps -a
  52. 51 sudo podman logs 085
  53. 52 sudo podman run mariadb -d -e MARIADB_ROOT_PASSWORD
  54. 53 sudo podman run -d -e MARIADB_ROOT_PASSWORD=password mariadb
  55. 54 sudo podman ps
  56. 55 podman login registry.access.redhat.com
  57. 56 podman login docker.io
  58. 57 podman images
  59. 58 sudo podman images
  60. 59 podman image inspect 1b7
  61. 60 podman image inspect 1b7 | less
  62. 61 docker images
  63. 62 podman image -h
  64. 63 podman images -h
  65. 64 podman -h
  66. 65 podman --help
  67. 66 podman image --help
  68. 67 podman ps
  69. 68 podman exec -it 742 sh
  70. 69 podman ps
  71. 70 docker commit --help | less
  72. 71 podman commit 742 woz:1.0
  73. 72 podman images
  74. 73 podman save localhost/woz -o woz.tar
  75. 74 podman save localhost/woz:1.0 -o woz.tar
  76. 75 ls -l
  77. 76 history
  78. 77 sudo dnf provides */skopeo
  79. 78 sudo dnf install skopeo
  80. 79 skopeo inspect docker://docker.io/bitnami/mysql
  81. 80 podman images
  82. 81 pomdna tag localhost/woz localhost/woz:1.1
  83. 82 podman tag localhost/woz localhost/woz:1.1
  84. 83 podman tag localhost/woz:1.0 localhost/woz:1.1
  85. 84 podman images
  86. 85 podman rmi localhost/woz:latest
  87. 86 podman rmi localhost/woz:1.1
  88. 87 history
  89. 88 ./countdown 12
  90. 89 podman run -it docker.io/bitnami/nginx sh
  91. 90 podman ps -a
  92. 91 podman exec -it 6dd sh
  93. 92 podman ps
  94. 93 podman search mysql | grep rhscl
  95. 94 sudo podman pull registry.access.redhat.com/rhscl/mysql-57-rhel7
  96. 95 sudo podman inspect registry.access.redhat.com/rhcsl/mysql-57-rhel7
  97. 96 sudo podman inspect registry.access.redhat.com/rhscl/mysql-57-rhel7
  98. 97 sudo podman inspect registry.access.redhat.com/rhscl/mysql-57-rhel7 | less
  99. 98 sudo mkdir /srv/dbfiles
  100. 99 sudo chown -R 27:27 /srv/dbfiles
  101. 100 ls -ld /srv/dbfiles/
  102. 101 ls -ldZ /srv/dbfiles/
  103. 102 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
  104. 103 sudo restorecon -Rv /srv/dbfiles
  105. 104 ls -ldZ /srv/dbfiles/
  106. 105 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-57-rhel7
  107. 106 sudo podman ps
  108. 107 ls -l /srv/dbfiles/
  109. 108 ls -lZ /srv/dbfiles/
  110. 109 pwd
  111. 110 cd
  112. 111 whoami
  113. 112 mkdir dbfiles
  114. 113 ls -lZd dbfiles/
  115. 114 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. 115 podman ps
  117. 116 ls -lZd /home/student/dbfiles/
  118. 117 history
  119. 118 podman run -d -p 88:80 nginx
  120. 119 skopeo docker://docker.io/bitnami/nginx
  121. 120 skopeo inspect docker://docker.io/bitnami/nginx | less
  122. 121 podman run -d -p 8088:80 docker.io/bitnami/nginx
  123. 122 podman ps
  124. 123 curl localhost:8088
  125. 124 ip a
  126. 125 curl 192.168.29.150:8088
  127. 126 podman ps
  128. 127 podman kill 989
  129. 128 podman run -d -p 127.0.0.1:8088:80 docker.io/bitnami/nginx
  130. 129 curl localhost:8088
  131. 130 cd ex180/
  132. 131 curl http://localhost:8088
  133. 132 ./countdown 18
  134. 133 history
  135. 134 podman inspect docker.io/bitnami/nginx | less
  136. 135 podman ps
  137. 136 podman stop 2e3
  138. 137 podm rm 2e3
  139. 138 podman rm 2e3
  140. 139 podman run -d -p 8088:8080 docker.io/bitnami/nginx
  141. 140 curl localhost:8080
  142. 141 curl localhost:8088
  143. 142 sudo podman run -it quay.io/quay/busybox sh
  144. 143 ps aux | grep sleep
  145. 144 podman run -it quay.io/quay/busybox sh
  146. 145 ps aux | grep sleep
  147. 146 sudo podman run -it -u 27 quay.io/quay/busybox sh
  148. 147 ps aux | grep sleep
  149. 148 podman run -it -u 27 quay.io/quay/busybox sh
  150. 149 ps aux | grep sleeep
  151. 150 ps aux | grep sleep
  152. 151 sudo podman
  153. 152 sudo podman ps
  154. 153 sudo podman attach 73c
  155. 154 ps aux | grep sleep
  156. 155 podman ps
  157. 156 podman attach 2f2b
  158. 157 ps aux | grep sleep
  159. 158 podman top -l user huser args
  160. 159 cd
  161. 160 ls -ldZ dbfiles/
  162. 161 podman unshare ls -ld /home/student/dbfiles
  163. 162 podman unshare chown 27:27 -R dbfiles
  164. 163 podman unshare ls -ld /home/student/dbfiles
  165. 164 ls -ld /home/student/files
  166. 165 ls -ld /home/student/dbfiles
  167. 166 podman top -l user huser
  168. 167 cd ex180/
  169. 168 ./countdown 10
  170. 169 sudo dnf provides */Dockerfile
  171. 170 sudo dnf provides */Containerfile
  172. 171 sudo dnf install buildah-test
  173. 172 sudo dnf install buildah-tests
  174. 173 less /usr/share/buildah/test/system/bud/copy-globs/Containerfile
  175. 174 ls
  176. 175 cd sample-dockerfile/
  177. 176 ls
  178. 177 vim Dockerfile
  179. 178 podman build -t centmap:1.0 .
  180. 179 podman images
  181. 180 vim Dockerfile
  182. 181 podman build -t ubimap:1.0 .
  183. 182 podman images
  184. 183 vim Dockerfile
  185. 184 podman build -t alpmap .
  186. 185 podman images
  187. 186 podman run alpmap
  188. 187 podman run -it alpmap sh
  189. 188 history
  190.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement