Advertisement
sandervanvugt

containers nov23

Nov 17th, 2023
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 KB | None | 0 0
  1. [student@localhost ~]$ history
  2. 1 podman run -it ubuntu
  3. 2 sudo dnf install container-tools
  4. 3 docker run -it ubuntu
  5. 4 podman ps
  6. 5 podman ps -a
  7. 6 podman start -it unruffled_shamir
  8. 7 podman start unruffled_shamir
  9. 8 podman ps
  10. 9 history
  11. 10 sudo dnf install git -y
  12. 11 git clone https://github.com/sandervanvugt/containers
  13. 12 cd containers/
  14. 13 ls
  15. 14 history
  16. 15 sudo vim /etc/containers/registries.conf
  17. 16 podman run fedora
  18. 17 podman ps
  19. 18 podman ps -a
  20. 19 podman run -it fedora
  21. 20 podman ps -a
  22. 21 podman start goofy_ishizaka
  23. 22 podman ps
  24. 23 podman start -it goofy_ishizaka bash
  25. 24 podman start -i goofy_ishizaka bash
  26. 25 podman run nginx -d
  27. 26 podman run -d nginx
  28. 27 podman ps
  29. 28 podman attach eloquent_feynman
  30. 29 podman attach unruffled_shamir
  31. 30 podman ps
  32. 31 podman run -d nginx
  33. 32 podman ps
  34. 33 podman exec -it charming_noyce sh
  35. 34 podman ps
  36. 35 podman exec -it unruffled_shamir sh
  37. 36 podman run -d docker.io/library/busybox:latest sleep 3600
  38. 37 podman ps
  39. 38 podman images
  40. 39 podman stop 7e7
  41. 40 history
  42. 41 podman run --rm busybox sleep 10
  43. 42 podman ps -a
  44. 43 sudo find / -name "5c0bc*"
  45. 44 cd ~/.local/share/containers/storage/
  46. 45 ls
  47. 46 cd overlay-containers/
  48. 47 ls
  49. 48 cd 5c0bc8f4f30868e94231936422e8d7e5caeb875d26003e90a9220834b090a585/
  50. 49 ls
  51. 50 cd userdata/
  52. 51 ls
  53. 52 cd
  54. 53 podman ps -a
  55. 54 podman rm 7e7
  56. 55 podman images
  57. 56 sudo find / -name "e4c5*"
  58. 57 podman ps
  59. 58 podman inspect unruffled_shamir | less
  60. 59 podman images
  61. 60 podman image inspect e41 | less
  62. 61 podman inspect e41 | less
  63. 62 podman inspect docker.io/library/ubuntu | less
  64. 63 podman run mariadb
  65. 64 podman pull docker.io/library/alpine
  66. 65 podman images
  67. 66 podman inspect 8ca
  68. 67 podman inspect 8ca | less
  69. 68 history
  70. 69 podman ps -a
  71. 70 podman logs naughty_clarke
  72. 71 podman stats
  73. 72 cd containers/
  74. 73 history
  75. 74 podman search nginx
  76. 75 podman container run --name webserver -d -p 8080:80 nginx
  77. 76 podman ps
  78. 77 curl localhost:8080
  79. 78 podman ps
  80. 79 podman images
  81. 80 podman image inspect 0bbb
  82. 81 #sudo podman run -d docker.io/library/nginx
  83. 82 ip a
  84. 83 sudo podman run -d docker.io/library/nginx
  85. 84 ip a
  86. 85 sudo podman ps
  87. 86 sudo podman inspect c586 | less
  88. 87 podman run -d -p 8081:80 --memory="128m" nginx
  89. 88 podman stats
  90. 89 man podman-run
  91. 90 man -k podman
  92. 91 man -k podman | wc -l
  93. 92 podman run -d --rm -c 512 --cpuset-cpus=0 --cpus=1 busybox dd if=/dev/zero of=/dev/null
  94. 93 man podman-run
  95. 94 podman run -d --rm -c 512 --cpus=1 busybox dd if=/dev/zero of=/dev/null
  96. 95 top
  97. 96 podman run -d --rm -c 2048 --cpus=1 busybox dd if=/dev/zero of=/dev/null
  98. 97 top
  99. 98 history
  100. 99 sudo -i
  101. 100 top
  102. 101 sudo -i
  103. 102 top
  104. 103 podman ps
  105. 104 podman stop 693
  106. 105 podman kill 6f6
  107. 106 ps faux | less
  108. 107 podman ps -a
  109. 108 podman logs naughty_clarke
  110. 109 podman rm naughty_clarke
  111. 110 podman run --name mydb -d --env MARIADB_ROOT_PASSWORD=password mariadb
  112. 111 podman ps
  113. 112 podman exec -it 683
  114. 113 podman exec -it 683 sh
  115. 114 history
  116. 115 ls
  117. 116 cd dockerfile/
  118. 117 ls
  119. 118 vim Dockerfile
  120. 119 podman build -t centmap .
  121. 120 podman images
  122. 121 podman run localhost/centmap
  123. 122 podman run -it localhost/centmap sh
  124. 123 vim Dockerfile
  125. 124 cd ../alpmap/
  126. 125 ls
  127. 126 vim Dockerfile
  128. 127 podman build -t alpmap .
  129. 128 podman images
  130. 129 podman run localhost/alpmap
  131. 130 podman run -it localhost/alpmap sh
  132. 131 cd ..
  133. 132 ./countdown 12
  134. 133 podman run -d -p 5000:5000 --restart=always --name registry registry:latest
  135. 134 podman pull fedora
  136. 135 podman images
  137. 136 podman tag fedora:latest localhost:5000/myfedora
  138. 137 podman images
  139. 138 podman push localhost:5000/myfedora --tls-verify-true
  140. 139 podman push localhost:5000/myfedora --tls-verify=true
  141. 140 podman push localhost:5000/myfedora --tls-verify=false
  142. 141 podman login docker.io
  143. 142 podman rmi fedora
  144. 143 podman exec -it registry sh
  145. 144 podman pull localhost:5000/myfedora
  146. 145 podman pull localhost:5000/myfedora --tls-verify=false
  147. 146 podman run -dit --name=bind2 -v /home/student/bind2:/app nginx
  148. 147 mkdir bind2
  149. 148 podman run -dit --name=bind2 -v /home/student/bind2:/app nginx
  150. 149 mkdir ~/bind2
  151. 150 podman run -dit --name=bind2 -v /home/student/bind2:/app nginx
  152. 151 podman ps
  153. 152 podman exec -it bind2 sh
  154. 153 cd ..
  155. 154 ls -ldZ bind2/
  156. 155 podman stop bind2
  157. 156 podman rm bind2
  158. 157 podman run -dit --name=bind2 -v /home/student/bind2:/app:Z nginx
  159. 158 ls -dZ bind2/
  160. 159*
  161. 160 podman exec -it bind2 sh
  162. 161 ls -l bind2/
  163. 162 sudo grep AVC /var/log/audit/audit.log
  164. 163 sudo journalctl | grep sealert
  165. 164 sudo sealert -l 269782e2-1c91-4a2e-af7f-e7c8194ad9ea
  166. 165 podman volumes list
  167. 166 podman volume ls
  168. 167 podman volume inspect 2b0
  169. 168 podman volume inspect b1d
  170. 169 podman volume inspect 6edb2d555a68074eac73525f6c5cb34efd1f482030029f5055cf5f5fd918789f
  171. 170 podman volume create -h
  172. 171 podman volume create -d nfs nfsvol
  173. 172 ssh student@192.168.29.139
  174. 173 history
  175.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement