Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ~]$ history
- 1 sudo dnf upgrade -y
- 2 sudo dnf install -y git
- 3 git clone https://github.com/sandervanvugt/ex180
- 4 cd ex180
- 5 ls
- 6 history
- 7 sudo podman search ubi
- 8 sudo podman pull docker.io/redhat/ubi8
- 9 podman images
- 10 sudo podman images
- 11 podman run ubi8
- 12 sudo vim /etc/containers/registries.conf
- 13 ls -l /etc/containers/registries.conf.d/
- 14 podman ps
- 15 podman ps -a
- 16 podman run ubi8ubi echo hello world
- 17 podman run ubi8/ubi echo hello world
- 18 podman ps -a
- 19 podman run nginx
- 20 podman run docker.io/library/nginx
- 21 podman run docker.io/library/nginx -d
- 22 podman run -d docker.io/library/nginx
- 23 podman ps
- 24 podman run -it ubi8/ubi
- 25 podman ps
- 26 podman attach -it 581
- 27 podman attach 581
- 28 ps faux | less
- 29 podman ps
- 30 sudo ip a
- 31 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
- 32 podman inspect -l
- 33 sudo podman run -d nginx
- 34 sudo ip a
- 35 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
- 36 podman run -d mariadb
- 37 podman run -d docker.io/library/mariadb
- 38 find . -name "c7af4aea09510957bad3c5d75f8d41dfc2cfb8f2ec448e1316590d306b235649"
- 39 sudo find . -name "c7af4aea09510957bad3c5d75f8d41dfc2cfb8f2ec448e1316590d306b235649"
- 40 sudo find . -name "c7af4aea09510957bad3c5d75f8d41dfc2cfb8f2ec448e1316590d306b235649*"
- 41 podman ps
- 42 podman ps -a
- 43 podman logs c7a
- 44 podman run -d -e MARIADB_ROOT_PASSWORD=password docker.io/library/mariadb
- 45 podman ps
- 46 ./countdown 13
- 47 podman login docker.io
- 48 podman images
- 49 podman image rm mariadb:latest
- 50 podman ps
- 51 podman stop edb
- 52 podman image rm mariadb:latest
- 53 podman ps
- 54 podman ps -a
- 55 podman rm edb
- 56 podman rm c7a
- 57 podman image rm mariadb:latest
- 58 podman images
- 59 podman ps
- 60 podman exec -it infallible_solomon sh
- 61 podman ps
- 62 podman save -h | less
- 63 #podman save --format oci-archive -o xxxxx
- 64 podman images
- 65 #podman save --format oci-archive -o sanderginx.tar 9eee96112def
- 66 podman save --format oci-archive -o sanderginx.tar 9eee96112def
- 67 ls -lrt
- 68 cd
- 69 find . -name "9eee*"
- 70 find . -name "9eee*" 2>/dev/null
- 71 history
- 72 podman image inspect docker.io/library/nginx:latest
- 73 podman image inspect docker.io/library/nginx:latest | less
- 74 podman search mysql
- 75 sudo podman pull registry.redhat.io/rhscl/mysql-57-rhel7
- 76 sudo podman login registry.redhat.io
- 77 sudo podman pull registry.redhat.io/rhscl/mysql-57-rhel7
- 78 sudo podman inspect registry.redhat.io/rhscl/mysql-57-rhel7 | less
- 79 sudo mkdir /srv/dbfiles
- 80 sudo chown -R 27:27 /srv/dbfiles
- 81 ls -ld /srv/dbfiles/
- 82 ls -ldZ /srv/dbfiles/
- 83 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
- 84 ls -ldZ /srv/dbfiles/
- 85 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 86 ls -lZ /srv/dbfiles/
- 87 sudo podman ps -a
- 88 sudo podman rm ec59
- 89 sudo restorecon -Rv /srv/dbfiles
- 90 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 91 ls -lZ /srv/dbfiles/
- 92 history
- 93 whoami
- 94 mkdir dbfiles
- 95 ls -l
- 96 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 97 podman login registry.redhat.io
- 98 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 99 ls -lZ dbfiles/
- 100 history
- 101 podman run -d -p 8088:80 docker.io/library/nginx
- 102 podman ps
- 103 curl localhost:8088
- 104 sudo podman run -it quay.io/quay/busybox sh
- 105 ps aux | grep 1001
- 106 podman run -it quay.io/quay/busybox sh
- 107 ps aux | grep sleep
- 108 sudo podman run -it -u 27 quay.io/quay/busybox sh
- 109 ps aux | grep sleep
- 110 podman run -it -u 27 quay.io/quay/busybox sh
- 111 ps au | grep sleep
- 112 history
- 113 podman run -it quay.io/quay/busybox sh
- 114 ps aux | grep 6000
- 115 ls -lZ dbfiles/
- 116 podman unshare ls -ld dbfiles/
- 117 ls -ld dbfiles/
- 118 podman unsahre chown 27:27 -R dbfiles
- 119 podman unsahre chown -R 27:27 dbfiles
- 120 podman unshare chown 27:27 -R dbfiles
- 121 podman unshare ls -ld dbfiles/
- 122 podman top -l user huser
- 123 sudo dnf provides */Containerfile
- 124 sudo find / -name "Containerfile"
- 125 cd ex180/
- 126 ls
- 127 cd sample-dockerfile/
- 128 ls
- 129 vim Dockerfile
- 130 podman build -t centmap:1.0 .
- 131 podman images
- 132 podman run localhost/centmap
- 133 podman run localhost/centmap:1.0
- 134 mkdir alpmap
- 135 mkdir ../alpmap
- 136 cp Dockerfile ../alpmap/
- 137 cd ../alpmap/
- 138 vim Dockerfile
- 139 podman build -t alpmap .
- 140 podman images
- 141 podman run -it alpmap sh
- 142 podman run -ti centmap:1.0 sh
- 143 cd -
- 144 vim Dockerfile
- 145 ../countdown 12
- 146 cd
- 147 sudo useradd linda
- 148 sudo passwd linda
- 149 sudo loginctl enable-linger linda
- 150 ssh linda@localhost
- 151 history -w
- 152 cd ex180/
- 153 ./countdown 20
- 154 sudo dnf upgrade -y
- 155 sudo dnf install -y git
- 156 git clone https://github.com/sandervanvugt/ex180
- 157 cd ex180
- 158 ls
- 159 history
- 160 sudo podman search ubi
- 161 sudo podman pull docker.io/redhat/ubi8
- 162 podman images
- 163 sudo podman images
- 164 podman run ubi8
- 165 sudo vim /etc/containers/registries.conf
- 166 ls -l /etc/containers/registries.conf.d/
- 167 podman ps
- 168 podman ps -a
- 169 podman run ubi8ubi echo hello world
- 170 podman run ubi8/ubi echo hello world
- 171 podman ps -a
- 172 podman run nginx
- 173 podman run docker.io/library/nginx
- 174 podman run docker.io/library/nginx -d
- 175 podman run -d docker.io/library/nginx
- 176 podman ps
- 177 podman run -it ubi8/ubi
- 178 podman ps
- 179 podman attach -it 581
- 180 podman attach 581
- 181 ps faux | less
- 182 podman ps
- 183 sudo ip a
- 184 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
- 185 podman inspect -l
- 186 sudo podman run -d nginx
- 187 sudo ip a
- 188 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
- 189 podman run -d mariadb
- 190 podman run -d docker.io/library/mariadb
- 191 find . -name "c7af4aea09510957bad3c5d75f8d41dfc2cfb8f2ec448e1316590d306b235649"
- 192 sudo find . -name "c7af4aea09510957bad3c5d75f8d41dfc2cfb8f2ec448e1316590d306b235649"
- 193 sudo find . -name "c7af4aea09510957bad3c5d75f8d41dfc2cfb8f2ec448e1316590d306b235649*"
- 194 podman ps
- 195 podman ps -a
- 196 podman logs c7a
- 197 podman run -d -e MARIADB_ROOT_PASSWORD=password docker.io/library/mariadb
- 198 podman ps
- 199 ./countdown 13
- 200 podman login docker.io
- 201 podman images
- 202 podman image rm mariadb:latest
- 203 podman ps
- 204 podman stop edb
- 205 podman image rm mariadb:latest
- 206 podman ps
- 207 podman ps -a
- 208 podman rm edb
- 209 podman rm c7a
- 210 podman image rm mariadb:latest
- 211 podman images
- 212 podman ps
- 213 podman exec -it infallible_solomon sh
- 214 podman ps
- 215 podman save -h | less
- 216 #podman save --format oci-archive -o xxxxx
- 217 podman images
- 218 #podman save --format oci-archive -o sanderginx.tar 9eee96112def
- 219 podman save --format oci-archive -o sanderginx.tar 9eee96112def
- 220 ls -lrt
- 221 cd
- 222 find . -name "9eee*"
- 223 find . -name "9eee*" 2>/dev/null
- 224 history
- 225 podman image inspect docker.io/library/nginx:latest
- 226 podman image inspect docker.io/library/nginx:latest | less
- 227 podman search mysql
- 228 sudo podman pull registry.redhat.io/rhscl/mysql-57-rhel7
- 229 sudo podman login registry.redhat.io
- 230 sudo podman pull registry.redhat.io/rhscl/mysql-57-rhel7
- 231 sudo podman inspect registry.redhat.io/rhscl/mysql-57-rhel7 | less
- 232 sudo mkdir /srv/dbfiles
- 233 sudo chown -R 27:27 /srv/dbfiles
- 234 ls -ld /srv/dbfiles/
- 235 ls -ldZ /srv/dbfiles/
- 236 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
- 237 ls -ldZ /srv/dbfiles/
- 238 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 239 ls -lZ /srv/dbfiles/
- 240 sudo podman ps -a
- 241 sudo podman rm ec59
- 242 sudo restorecon -Rv /srv/dbfiles
- 243 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 244 ls -lZ /srv/dbfiles/
- 245 history
- 246 whoami
- 247 mkdir dbfiles
- 248 ls -l
- 249 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 250 podman login registry.redhat.io
- 251 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.redhat.io/rhscl/mysql-57-rhel7
- 252 ls -lZ dbfiles/
- 253 history
- 254 podman run -d -p 8088:80 docker.io/library/nginx
- 255 podman ps
- 256 curl localhost:8088
- 257 sudo podman run -it quay.io/quay/busybox sh
- 258 ps aux | grep 1001
- 259 podman run -it quay.io/quay/busybox sh
- 260 ps aux | grep sleep
- 261 sudo podman run -it -u 27 quay.io/quay/busybox sh
- 262 ps aux | grep sleep
- 263 podman run -it -u 27 quay.io/quay/busybox sh
- 264 ps au | grep sleep
- 265 history
- 266 podman run -it quay.io/quay/busybox sh
- 267 ps aux | grep 6000
- 268 ls -lZ dbfiles/
- 269 podman unshare ls -ld dbfiles/
- 270 ls -ld dbfiles/
- 271 podman unsahre chown 27:27 -R dbfiles
- 272 podman unsahre chown -R 27:27 dbfiles
- 273 podman unshare chown 27:27 -R dbfiles
- 274 podman unshare ls -ld dbfiles/
- 275 podman top -l user huser
- 276 sudo dnf provides */Containerfile
- 277 sudo find / -name "Containerfile"
- 278 cd ex180/
- 279 ls
- 280 cd sample-dockerfile/
- 281 ls
- 282 vim Dockerfile
- 283 podman build -t centmap:1.0 .
- 284 podman images
- 285 podman run localhost/centmap
- 286 podman run localhost/centmap:1.0
- 287 mkdir alpmap
- 288 mkdir ../alpmap
- 289 cp Dockerfile ../alpmap/
- 290 cd ../alpmap/
- 291 vim Dockerfile
- 292 podman build -t alpmap .
- 293 podman images
- 294 podman run -it alpmap sh
- 295 podman run -ti centmap:1.0 sh
- 296 cd -
- 297 vim Dockerfile
- 298 ../countdown 12
- 299 cd
- 300 sudo useradd linda
- 301 sudo passwd linda
- 302 sudo loginctl enable-linger linda
- 303 ssh linda@localhost
- 304 history -w
- 305 sudo reboot
- 306 sudo ps faux | less
- 307 history
- 308 ssh linda@localhost
- 309 history
- linda@localhost ~]$ history
- 1 ls -l .config
- 2 mkdir -p .config/systemd/user
- 3 cd .config/systemd/user/
- 4 podman run -d --name mynginx -p 8081:80 nginx
- 5 podman ps
- 6 podman generate --help
- 7 podman generate systemd --help
- 8 podman generate systemd --name mynginx --files --new
- 9 vim container-mynginx.service
- 10 systemctl --user daemon-reload
- 11 systemctl --user enable container-mynginx.service
- 12 systemctl --user status container-mynginx.service
- 13 history -w
- 14 ls -l .config
- 15 mkdir -p .config/systemd/user
- 16 cd .config/systemd/user/
- 17 podman run -d --name mynginx -p 8081:80 nginx
- 18 podman ps
- 19 podman generate --help
- 20 podman generate systemd --help
- 21 podman generate systemd --name mynginx --files --new
- 22 vim container-mynginx.service
- 23 systemctl --user daemon-reload
- 24 systemctl --user enable container-mynginx.service
- 25 systemctl --user status container-mynginx.service
- 26 history -w
- 27 exit
- 28 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement