sandervanvugt

containers sept23

Sep 11th, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. [student@localhost ~]$ history
  2. 1 podman ps
  3. 2 podman stop 3395
  4. 3 sudo cat /proc/sys/kernel/pid_max
  5. 4 podman ps
  6. 5 podman kill 768
  7. 6 podman kill f68
  8. 7 podman ps
  9. 8 sudo ps faux | less
  10. 9 sudo kill -9 40221
  11. 10 podman ps
  12. 11 sudo ps faux | less
  13. 12 sudo kill -9 40229
  14. 13 podman ps
  15. 14 podman search nginx | less
  16. 15 podman run -d quay.io/centos7/mariadb-103-centos7
  17. 16 podman images
  18. 17 podman ps
  19. 18 podman ps -a
  20. 19 podman logs heuristic_tharp
  21. 20 history
  22. 21 podman images
  23. 22 podman images | awk '{ /nginx/ print $1 }'
  24. 23 podman images | awk '/nginx/ { print $1 }'
  25. 24 podman images | awk '/nginx/ { print $3 }'
  26. 25 find ~ -name $(podman images | awk '/nginx/ { print $3 }')
  27. 26 sudo find ~ -name $(podman images | awk '/nginx/ { print $3 }')
  28. 27 sudo find /home/student -name $(podman images | awk '/nginx/ { print $3 }')
  29. 28 podman ps
  30. 29 podman attach kind_heyrovsky
  31. 30 podman inspect determined_proskuriakova | less
  32. 31 podman images
  33. 32 podman inspect f5a | less
  34. 33 podman stat
  35. 34 podman stats
  36. 35 podman run --name webserver -d -p 8080:80 nginx
  37. 36 curl localhost:8080
  38. 37 ip a
  39. 38 sudo podman run -d -p 8081:80 nginx
  40. 39 sudo podman ps
  41. 40 ip a
  42. 41 man podman-run
  43. 42 podman run -h | less
  44. 43 podman run --help | less
  45. 44 podman run --memory=128m nginx -d
  46. 45 podman run --memory=128m -d nginx
  47. 46 podman stats
  48. 47 podman rm a7cd
  49. 48 podman rm --force a7cd
  50. 49 podman stats
  51. 50 lscpu
  52. 51 sudo sh -c echo 0 > /sys/bus/cpus/devices/cpu1
  53. 52 sudo sh -c echo 0 > /sys/bus/cpu/devices/cpu1
  54. 53 sudo sh -c echo 0 > /sys/bus/cpu/devices/cpu1/online
  55. 54 sudo sh -c "echo 0 > /sys/bus/cpu/devices/cpu1/online"
  56. 55 lscpu | less
  57. 56 podman run -d --rm -c 512 busybox dd if=/dev/zero of=/dev/null
  58. 57 podman run -d --rm -c 2048 busybox dd if=/dev/zero of=/dev/null
  59. 58 podman stats
  60. 59 top
  61. 60 podman ps
  62. 61 podman kill angry_williams
  63. 62 podman kill peaceful_heyrovsky
  64. 63 history
  65. 64 podman ps -a
  66. 65 podman inspect heuristic_tharp
  67. 66 podman logs heuristic_tharp
  68. 67 podman rm heuristic_tharp
  69. 68 podman run -d --env MARIADB_ROOT_PASSWORD=password quay.io/centos7/mariadb-103-centos7:latest
  70. 69 podman ps
  71. 70 podman ps -a
  72. 71 podman logs laughing_panini
  73. 72 podman rm --force laughing_panini
  74. 73 podman run -d --env MYSQL_ROOT_PASSWORD=password quay.io/centos7/mariadb-103-centos7:latest
  75. 74 podman ps
  76. 75 podman run -d docker.io/library/nginx:1.17
  77. 76 podman images
  78. 77 pwd
  79. 78 ls
  80. 79 cd dockerfile/
  81. 80 ls
  82. 81 vim Dockerfile
  83. 82 podman build -t centmap .
  84. 83 podman images
  85. 84 podman run localhost/centmap
  86. 85 sudo podman run localhost/centmap
  87. 86 history
  88. 87 vim Dockerfile
  89. 88 cd ../alpmap/
  90. 89 ls
  91. 90 vim Dockerfile
  92. 91 podman build -t alpmap .
  93. 92 podman images
  94. 93 docker run -d --name newginx nginx
  95. 94 podman run -d --name newginx nginx
  96. 95 podman ps
  97. 96 podman exec -it newginx sh
  98. 97 podman exec -it newginx sh
  99. 98 docker diff newginx
  100. 99 podman diff newginx
  101. 100 podman commit newginx
  102. 101 podman images
  103. 102 podman tag --help | less
  104. 103 podman tag 7447 localhost/newginx:1.0
  105. 104 podman images
  106. 105 sudo podman run -d -p 5000:5000 --restart=always --name registry registry:latest
  107. 106 sudo podman ps
  108. 107 podman pull fedora
  109. 108 sudo podman pull fedora
  110. 109 sudo podman tag fedora:latest localhost:5000/myfedora
  111. 110 sudo podman images
  112. 111 sudo podman push localhost:5000/myfedora
  113. 112 sudo podman push http://localhost:5000/myfedora
  114. 113 sudo podman push --help | less
  115. 114 sudo podman push --tls-verify=false localhost:5000/myfedora
  116. 115 cd ..
  117. 116 podman run --rm -dit --name=bind2 -v /home/student/bind2:/app:Z nginx:latest
  118. 117 mkdir bind2
  119. 118 podman run --rm -dit --name=bind2 -v /home/student/bind2:/app:Z nginx:latest
  120. 119 podman exec -it bind2 sh
  121. 120 ls -l bind2/
  122. 121 exit
  123. 122 sudo -i
  124. 123 podman run nginx
  125. 124 sudo dnf install git -y
  126. 125 git install https://github.com/sandervanvugt/containers
  127. 126 git clone https://github.com/sandervanvugt/containers
  128. 127 cd containers/
  129. 128 ls
  130. 129 ./countdown 15
  131. 130 podman run ubuntu
  132. 131 podman images
  133. 132 podman run -d docker.io/library/nginx
  134. 133 vim /etc/containers/registries.conf
  135. 134 podman login docker.io
  136. 135 history
  137. 136 podman ps
  138. 137 sudo find . -name "a7cd*"
  139. 138 sudo find / -name "a7cd*"
  140. 139 pwd
  141. 140 podman ps -a
  142. 141 podman run -it ubuntu
  143. 142 podman ps
  144. 143 podman ps -a
  145. 144 podman run -it ubuntu
  146. 145 podman ps
  147. 146 podman run nginx
  148. 147 podman run -d nginx
  149. 148 history
  150. 149 podman run ubuntu sleep 3600
  151. 150 exit
  152. 151 cd containers/
  153. 152 ./countdown 1
  154. 153 ./countdown 12
  155. 154 history
  156.  
Add Comment
Please, Sign In to add comment