Advertisement
sandervanvugt

ex180 april21 day1

Apr 19th, 2021
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. [student@podman ~]$ history
  2. 1 history
  3. 2 exit
  4. 3 luth/countdown 6
  5. 4 sudo podman ports
  6. 5 sudo podman port
  7. 6 sudo podman ps
  8. 7 sudo podman port crazy_germain
  9. 8 sudo podman run -d -p 8088:80 nginx
  10. 9 sudo podman ps
  11. 10 curl localhost:8088
  12. 11 git clone https://github.com/sandervanvugt/devopsinfourweeks
  13. 12 cd devopsinfourweeks/
  14. 13 ls
  15. 14 cd docker
  16. 15 cd dockerfile/
  17. 16 ls
  18. 17 vim Dockerfile
  19. 18 man podman-build
  20. 19 podman build .
  21. 20 sudo yum install docker-podman s2i
  22. 21 sudo yum provides */s2i
  23. 22 ping nu.nl
  24. 23 pwd
  25. 24 cd ..
  26. 25 ./counter.sh 12
  27. 26 history
  28. 27 exit
  29. 28 id
  30. 29 sudo yum search container
  31. 30 sudo yum install -y podman
  32. 31 sudo yum module search container
  33. 32 sudo yum modules search container
  34. 33 sudo yum module install container-tools
  35. 34 sudo podman search ubuntu
  36. 35 podman search ubuntu
  37. 36 sudo vim /etc/containers/registries.conf
  38. 37 podman search ubi
  39. 38 podman login
  40. 39 podman images
  41. 40 sudo podman pull ubi8/ubi
  42. 41 podman images
  43. 42 sudo podman images
  44. 43 history
  45. 44 podman ubi8
  46. 45 podman run ubi8
  47. 46 podman ps
  48. 47 podman ps -a
  49. 48 podman run ubi8/ubi echo hello world
  50. 49 podman run nginx
  51. 50 podman run -d nginx
  52. 51 podman ps
  53. 52 podman run -it ubi8/ubi /bin/bash
  54. 53 podman ps
  55. 54 podman login registry.redhat.io
  56. 55 history
  57. 56 sudo yum install -y git
  58. 57 git clone https://github.com/sandervanvugt/ex280
  59. 58 cd ex280/
  60. 59 ;s
  61. 60 ls
  62. 61 cd ..
  63. 62 git clone https://github.com/sandervanvugt/luth
  64. 63 cd luth/
  65. 64 ./countdown 12
  66. 65 man podman-search
  67. 66 man -k podman
  68. 67 man podman-search
  69. 68 podman run -d nginx
  70. 69 podman ps
  71. 70 podman inspect -l
  72. 71 podman inspect -l "{{.NetworkSettings.IPAddress}}"
  73. 72 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  74. 73 sudo ip a
  75. 74 sudo podman run -d nginx
  76. 75 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
  77. 76 sudo ip a
  78. 77 podman ps
  79. 78 ps aux
  80. 79 ps fax
  81. 80 ps fax | less
  82. 81 podman run -it busybox sh
  83. 82 uname -r
  84. 83 sudo podman run mariadb
  85. 84 sudo podman ps
  86. 85 sudo podman ps -a
  87. 86 sudo podman logs angry_saha
  88. 87 man podman-run
  89. 88 sudo podman run -d -e MYSQL_ROOT_PASSWORD=password mariadb
  90. 89 sudo podman ps
  91. 90 history
  92. 91 podman images
  93. 92 podman image ls
  94. 93 alias docker=pod
  95. 94 podman image -h
  96. 95 ./countdown 12
  97. 96 podman image ls
  98. 97 podman pull nginx:1.16
  99. 98 skopeo inspect nginx
  100. 99 skopeo inspect nginx:latest
  101. 100 skopeo inspect docker.io/library/nginx:latest
  102. 101 skopeo inspect docker://docker.io/library/nginx:latest
  103. 102 cd
  104. 103 podman save -o bitnginx.tar quay.io/bitnami/nginx
  105. 104 podman images
  106. 105 podman save -o bitnginx.tar docker.io/library/nginx
  107. 106 ls -l
  108. 107 podman run nginx --name newnginx
  109. 108 podman run -h
  110. 109 man podman-run
  111. 110 podman run --name newnginx nginx
  112. 111 podman run --name newnginx -d nginx
  113. 112 podman run --name newnginx2 -d nginx
  114. 113 unalias docker
  115. 114 docker ps
  116. 115 podman ps
  117. 116 podman exec -it newnginx2 sh
  118. 117 podman ps
  119. 118 podman diff newnginx2
  120. 119 podman commit newnginx2
  121. 120 podman ps
  122. 121 podman inspect newnginx2 | less
  123. 122 history
  124. 123 man semanage-fcontext
  125. 124 podman search mysql
  126. 125 podman pull registry.access.redhat.com/rhscl/mysql-57-rhel7
  127. 126 podman inspect registry.access.redhat.com/rhscl/mysql-57-rhel7 | less
  128. 127 sudo mkdir /srv/dbfiles
  129. 128 sudo chown -R 27:27 /srv/dbfiles
  130. 129 sudo ls -ld /srv/dbfiles/
  131. 130 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
  132. 131 sudo ls -ld /srv/dbfiles/
  133. 132 sudo ls -ldZ /srv/dbfiles/
  134. 133 sudo restorecon -Rv /srv/dbfiles/
  135. 134 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-57-rhel7
  136. 135 ls -l /srv/dbfiles/
  137. 136 history
  138. 137 id student
  139. 138 luth/countdown 18
  140. 139 history
  141. 140 exit
  142. 141 history
  143. 142 history | grep build
  144. 143 history
  145. 144 luth/countdown 8
  146. 145 sudo yum provides */Dockerfile
  147. 146 sudo yum install -y buildah
  148. 147 cd /usr/share/doc/buildah/
  149. 148 ls
  150. 149 cd /
  151. 150 sudo find / -name Dockerfile
  152. 151 cd
  153. 152 history
  154.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement