Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ~]$ history
- 1 sudo dnf install podman
- 2 podman run docker.io/library/ubuntu:latest
- 3 podman ps
- 4 podman ps -a
- 5 podman run -it docker.io/library/ubuntu:latest
- 6 podman ps
- 7 history
- 8 sudo ps faux | less
- 9 sudo dnf install git -y
- 10 git clone https://github.com/sandervanvugt/containers
- 11 cd containers/
- 12 ls
- 13 ./countdown 12
- 14 alias docker=podman
- 15 docker run hello-world
- 16 unalias docker
- 17 docker run hello-world
- 18 sudo dnf install podman-docker
- 19 sudo rpm -ql podman-docker
- 20 ls -l /usr/bin/docker
- 21 history
- 22 podman run nginx
- 23 podman run -d nginx
- 24 docker ps
- 25 podman inspect 3e6
- 26 podman inspect 3e6 | less
- 27 podman images
- 28 podman inspect cff
- 29 podman inspect cff | less
- 30 history
- 31 podman ps
- 32 podman stop cad
- 33 podman ps
- 34 podman ps -a
- 35 sudo find / -name "3a0914*"
- 36 cd /home/student/.local/share/containers/storage/overlay-containers/3a0914e2ecd0dda196aea7bc3ae970382006390480feba4721a526636e07b17d
- 37 ls
- 38 cd userdata/
- 39 ls
- 40 tree
- 41 cd
- 42 podman search mariadb
- 43 podman search mariadb | wc
- 44 sudo vim /etc/containers/registries.conf
- 45 podman run -d nginx --name myweb
- 46 podman ps
- 47 podman ps -a
- 48 podman run -d --name myweb nginx
- 49 podman ps
- 50 podman stop myweb
- 51 podman ps
- 52 podman run -d -p 8080:80 --name myweb nginx
- 53 podman ps -a
- 54 podman rm myweb
- 55 podman run -d -p 8080:80 --name myweb nginx
- 56 podman ps
- 57 curl localhost:8080
- 58 history
- 59 podman run mariadb
- 60 podman ps
- 61 podman ps -a
- 62 podman logs 066
- 63 podman stats
- 64 cd containers/
- 65 ./countdown 12
- 66 podman container inspect myweb
- 67 podman image inspect docker.io/library/ubuntu:latest
- 68 podman run -d --memory="128m" nginx
- 69 podman stats
- 70 sudo lscpu | less
- 71 sudo -i
- 72 podman run -d --rm -c 512 busybox dd if=/dev/zero of=/dev/null
- 73 podman run -d --rm -c 2048 busybox dd if=/dev/zero of=/dev/null
- 74 sudo podman run -d --rm -c 2048 busybox dd if=/dev/zero of=/dev/null
- 75 sudo podman run -d --rm -c 512 busybox dd if=/dev/zero of=/dev/null
- 76 sudo podman stats
- 77 history
- 78 sudo ps
- 79 sudo podman ps
- 80 sudo podman stop 6b3
- 81 sudo podman kill 1510
- 82 sudo -i
- 83 sudo echo 1 > /sys/bus/cpu/devices/cpu1/online
- 84 sudo sh -c "echo 1 > /sys/bus/cpu/devices/cpu1/online"
- 85 history
- 86 history | grep git
- 87 ls
- 88 vim dockerfile/
- 89 podman build -t centmap dockerfile/
- 90 podman image ls
- 91 podman run centmap
- 92 podman run -it centmap sh
- 93 ls
- 94 cd alpmap/
- 95 ls
- 96 vim Containerfile
- 97 podman build -t alpmap .
- 98 ls
- 99 touch sander.repo
- 100 podman build --no-cache -t alpmap .
- 101 podman images
- 102 podman pull ubi
- 103 podman search ubi
- 104 podman pull docker.io/redhat/ubi9-micro
- 105 podman images
- 106 vim Containerfile
- 107 podman run -d --name newginx nginx
- 108 podman ps
- 109 podman exec -it newginx sh
- 110 podman ps
- 111 podman diff newginx
- 112 podman commit -h | less
- 113 podman commit newginx
- 114 podman images
- 115 podman image tag e09 newginx:latest
- 116 podman images
- 117 history
- 118 cd ..
- 119 ./countdown 12
- 120 podman run -d -p 5000:5000 --restart=always --name registry registry:latest
- 121 podman pull fedora
- 122 podman images
- 123 podman tag fedora:latest localhost:5000/myfedora
- 124 podman push localhost:5000/myfedora
- 125 podman push -h
- 126 podman push --tls-verify=false localhost:5000/myfedora
- 127 podman rmi fedora
- 128 podman exec -it registry sh
- 129 podman pull localhost:5000/myfedora
- 130 podman pull --tls-verify=false localhost:5000/myfedora
- 131 history
- 132 mkdir myfiles
- 133 cd
- 134 mkdir files
- 135 podman run -v /home/student/files:/files:Z -it busybox sh
- 136 ls -l files/
- 137 podman volume create myvol
- 138 podman volume ls
- 139 podman volume inspect myvol
- 140 podman volume inspect 365
- 141 podman volume inspect 216
- 142 alias
- 143 podman run -it --name voltest --rm --mount source=myvol,target=/data nginx sh
- 144 podman run -it --name voltest --rm --mount type=volume,source=myvol,target=/data nginx sh
- 145 podman volume inspect myvol
- 146 ls -l /home/student/.local/share/containers/storage/volumes/myvol/_data
- 147 podman run -it --name voltest2 --rm --mount type=volume,src=myvol,target=data nginx sh
- 148 podman run -it --name voltest2 --rm --mount type=volume,src=myvol,target=/data nginx sh
- 149 ls -l /home/student/.local/share/containers/storage/volumes/myvol/_data
- 150 sudo dnf install nfs-server
- 151 sudo dnf install nfs-utils
- 152 sudo mkdir /nfsdata
- 153 sudo vim /etc/exports
- 154 sudochown nobody:nogroup /nfsdata
- 155 sudo chown nobody:nogroup /nfsdata
- 156 sudo chmod 777 /nfsdata
- 157 sudo setenforce 0
- 158 sudo systemctl restart nfs-server
- 159 showmount -e localhost
- 160 ip a
- 161 podman volume create --driver=local --opt type=nfs --opt o=addr=192.168.29.138,rw --opt device=:/nfsdata nfsvol
- 162 podman volume ls
- 163 podman volume inspect nfsvol
- 164 podman run -it --name voltest3 --rm --mount type=volume,src=nfsvol,target=/data nginx sh
- 165 #sudo podman run -it --name voltest3 --rm --mount type=volume,src=nfsvol,target=/data nginx sh
- 166 sudo podman volume create --driver=local --opt type=nfs --opt o=addr=192.168.29.138,rw --opt device=:/nfsdata nfsvol
- 167 sudo podman run -it --name voltest3 --rm --mount type=volume,src=nfsvol,target=/data nginx sh
- 168 sudo podman run -it --name voltest3 --rm --mount type=volume,src=nfsvol,target=/data busybox sh
- 169 sudo podman run -it --name voltest3 --rm --mount src=nfsvol,target=/data nginx sh
- 170 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement