Advertisement
sandervanvugt

KCNA day1 sept 22

Sep 20th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. student@student-virtual-machine:~/kcna$ history
  2. 1 sudo apt install podman
  3. 2 sudo apt install kcna
  4. 3 sudo apt install git
  5. 4 git clone https://github.com/sandervanvugt/kcna
  6. 5 cd kcna/
  7. 6 ls
  8. 7 git pull
  9. 8 ./countdown 12
  10. 9 sudo apt install podman
  11. 10 #sudo apt install podman
  12. 11 podman run ubuntu
  13. 12 podman ps
  14. 13 podman ps -a
  15. 14 docker run -d nginx
  16. 15 sudo apt install podman-docker
  17. 16 docker run -d nginx
  18. 17 sudo vim /etc/containers/registries.conf
  19. 18 sudo nano /etc/containers/registries.conf
  20. 19 docker run -d nginx
  21. 20 grep docker /etc/containers/registries.conf
  22. 21 podman ps
  23. 22 history
  24. 23 grep docker /etc/containers/registries.conf
  25. 24 podman ps
  26. 25 docker run -it ubuntu sh
  27. 26 podman inspect ubuntu | less
  28. 27 podman ps
  29. 28 podman ps -a
  30. 29 podman rm gall
  31. 30 podman rm d186
  32. 31 podman run --name webserver --memory=128m -d -p 8080:80 nginx
  33. 32 curl localhost:8080
  34. 33 sudo apt install curl -y
  35. 34 curl localhost:8080
  36. 35 ls
  37. 36 cd dockerfile/
  38. 37 ls
  39. 38 sudo apt install -y vim
  40. 39 vim Dockerfile
  41. 40 podman build . -t nmap
  42. 41 podman images
  43. 42 podman run localhost/nmap
  44. 43 cd ../alpmap/
  45. 44 ls
  46. 45 vim Dockerfile
  47. 46 podman build -t alpmap .
  48. 47 podman images
  49. 48 history
  50. 49 vim Dockerfile
  51. 50 podman build -t alpmap .
  52. 51 podman images
  53. 52 podman rmi b38
  54. 53 podman run -it localhost/nmap sh
  55. 54 podman run -it localhost/alpmap:latest sh
  56. 55 cd ..
  57. 56 ./countdown 12
  58. 57 ls
  59. 58 ./minikube-docker-setup.sh
  60. 59 sudo apt remove podman
  61. 60 sudo apt remove docker-ce podman-docker podman
  62. 61 ./minikube-docker-setup.sh
  63. 62 history
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement