Advertisement
sandervanvugt

Untitled

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