Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ex188]$ history
- 1 sudo subscription-manager register
- 2 sudo subscription-manager attach
- 3 podman run -it docker.io/library/ubuntu
- 4 sudo vim /etc/containers/registries.conf
- 5 podman images
- 6 podman search ubi9
- 7 podman pull registry.redhat.io/ubi9/ubi
- 8 podman login registry.redhat.io
- 9 podman pull registry.redhat.io/ubi9/ubi
- 10 podman images
- 11 history
- 12 podman ps
- 13 podman ps -a
- 14 podman run -d ubuntu sleep 3600
- 15 podman ps
- 16 podman exec -it admiring_kepler sh
- 17 podman ps
- 18 sudo podman search ubi
- 19 sudo podman pull registry.access.redhat.com/ubi8/ubi
- 20 podman images
- 21 sudo podman images
- 22 podman run ubi
- 23 podman ps
- 24 podman ps -a
- 25 podman run ubi echo hello world
- 26 podman ps -a
- 27 podman run -d nginx
- 28 podman run -it ubi /bin/bash
- 29 podman ps
- 30 sudo dnf install -y git
- 31 git clone https://github.com/sandervanvugt/ex188
- 32 cd ex188/
- 33 ls
- 34 history
- 35 podman run -d docker.io/library/nginx
- 36 sudo ip a
- 37 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
- 38 sudo podman run -d nginx
- 39 sudo ip a
- 40 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
- 41 sudo ps faux | less
- 42 podman run --name myweb -it nginx sh
- 43 podman ps
- 44 podman inspect myweb
- 45 podman inspect myweb | less
- 46 podman ps -a
- 47 podman inspect b628
- 48 sudo find /home/student -name "b628*"
- 49 podman image inspect nginx | less
- 50 podman attach myweb
- 51 podman ps
- 52 podman ps -a
- 53 history
- 54 podman run docker.io/library/mariadb
- 55 podman ps -a
- 56 podman logs sweet_hodgkin
- 57 podman run -d -e MYSQL_ROOT_PASSWORD=password mariadb
- 58 podman ps
- 59 podman network ls
- 60 podman network inspect 2f2
- 61 sudo -i
- 62 podman run -d -p 8088:80 nginx
- 63 curl localhost:8080
- 64 curl localhost:8088
- 65 podman ps
- 66 podman port
- 67 podman port c3
- 68 ss tunZap
- 69 ss tunap
- 70 sudo ss tunap
- 71 sudo ss -tunap
- 72 sudo ss -tunapZ
- 73 man podman-run
- 74 history
- 75 podman images
- 76 podman image tree 8d2
- 77 podman image tree e47
- 78 podman inspect ceb
- 79 podman image tree -h
- 80 podman image tree --whatrequires e47
- 81 podman image inspect ceb
- 82 podman image inspect ceb365432eec
- 83 podman run --name customweb -it nginx sh
- 84 podman commit customweb nginx:custom
- 85 podman images
- 86 podman run -it localhost/nginx:custom ls -l /tmp/testfile
- 87 ls
- 88 cd sample-containerfile/
- 89 ls
- 90 vim Containerfile
- 91 podman build -t nmap:latest .
- 92 podman images
- 93 cd ..
- 94 mkdir demo
- 95 cd demo
- 96 vim Containerfile
- 97 podman build -t myapp
- 98 podman build -t myapp .
- 99 podman images
- 100 podman run localhost/nmap:latest
- 101 podman run -it localhost/nmap:latest sh
- 102 cd ../sample-containerfile/
- 103 vim Containerfile
- 104 podman build -t alpmap .
- 105 podman images
- 106 podman run alpmap
- 107 podman run -it alpmap sh
- 108 vim Containerfile
- 109 podman run -it alpmap sh
- 110 podman build -t alpmap .
- 111 podman images
- 112 cd ../multistage-containerfile/
- 113 vim Containerfile
- 114 podman build -t multi .
- 115 podman images
- 116 podman run multi
- 117 podman image tree multi
- 118 podman image tree 033c
- 119 cd ..
- 120 ls
- 121 cd advanced-containerfile/
- 122 ls
- 123 vim Containerfile
- 124 history
- 125 cd ..
- 126 git pull
- 127 cd countdown-containerfile/
- 128 vim Containerfile
- 129 podman build -t countdown .
- 130 podman run countdown
- 131 podman run countdown 2
- 132 podman volume lsit
- 133 podman volume list
- 134 podman volume inspect 03df3fb3275955c88a7de458c5db4f0226a289e22d78999f7e945a18fbcb2844
- 135 date
- 136 podman volume inspect 623f57514d73b630355d4ff320ac2f442c96fcc12778aec9c485d8ca16de243f
- 137 less /home/student/.local/share/containers/storage/volumes/623f57514d73b630355d4ff320ac2f442c96fcc12778aec9c485d8ca16de243f/_data
- 138 cd ..
- 139 mkdir anna
- 140 vim Containerfile
- 141 podman build --build-arg user=anna -t argtest .
- 142 podman build --build-arg arguser=anna -t argtest .
- 143 podman ps
- 144 podman images
- 145 podman run argtest:latest
- 146 ls
- 147 cd anna
- 148 ls
- 149 cd ..
- 150 vim Containerfile
- 151 mkdir another
- 152 cd another/
- 153 vim Containerfile
- 154 podman build -t sleeper .
- 155 podman run -d --name sleeper sleeper
- 156 podman top sleeper huser user
- 157 vim Containerfile
- 158 podman build -t sleeper2 .
- 159 podman run -d --name sleeper2 sleeper2:latest
- 160 podman top sleeper2 huser user
- 161 sudo systemctl enable --now podman restart.service
- 162 sudo systemctl enable --now podman-restart.service
- 163 podman run -d -p 5000:5000 --restart=always --name docker.io/library/registry/registry:latest
- 164 podman run -d -p 5000:5000 --restart=always --name registry docker.io/library/registry/registry:latest
- 165 podman run -d -p 5000:5000 --restart=always --name registry docker.io/library/registry
- 166 podman pull fedora
- 167 podman images
- 168 podman images | grep fed
- 169 podman tag fedora:latest localhost:5000/myfedora
- 170 podman push localhost:5000/myfedora
- 171 podman push --tls-verify=false localhost:5000/myfedora
- 172 podman rmi fedora:latest
- 173 podman exec -it registry sh
- 174 podman pull localhost:5000/myfedora
- 175 podman pull --tls-verify=false localhost:5000/myfedora
- 176 podman image tree sleeper
- 177 podman image tree sleeper2
- 178 podman exec -it sleeper2 touch /tmp/smallfile
- 179 #
- 180 podman ps
- 181 ls ~/.local/share/containers/storage/overlay-containers/05ef40a40dc9f5c70d64b4a2f693c1e165676f2d40287b623b32fd9fb977b101/userdata/
- 182 podman volume -h | less
- 183 man podman-volume
- 184 podman volume create webdata
- 185 podman volume inspect webdata
- 186 podman run -d -p 8080:8080 --volume webdata:/var/www/html docker.io/bitnami/nginx
- 187 podman exec -it 5bd8542b8ff3 touch /var/www/html/friday
- 188 ls -Zd /home/student/.local/share/containers/storage/volumes/webdata
- 189 ls -Zd /home/student/.local/share/containers/storage/volumes/webdata/_data
- 190 history
- 191 cd
- 192 mkdir /home/student/dbfiles
- 193 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-80-rhel7
- 194 ls -ld /home/student/dbfiles
- 195 podman inspect registry.access.redhat.com/rhscl/mysql-80-rhel7:latest | grep User
- 196 podman unshare ls -ld /home/student/dbfiles/
- 197 podman unshare chown 27:27 -R dbfiles/
- 198 podman unshare ls -ld /home/student/dbfiles/
- 199 ld -ld dbfiles/
- 200 ls -ld dbfiles/
- 201 podman top -l user huser
- 202 history
- 203 podman ps -a
- 204 podman logs nifty_lamarr
- 205 history
- 206 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e MYSQL_ROOT_PASSWORD=password registry.access.redhat.com/rhscl/mysql-80-rhel7
- 207 podman ps
- 208 ls -dZ dbfiles/
- 209 podman volume create mysqldata
- 210 podman volume list
- 211 podman network create datanet
- 212 podman network list
- 213 podman network ls
- 214 podman run -d --name persistent-mysql -e MARIADB_ROOT_PASSWORD=password -v mysqldata:/var/lib/mysql --network=datanet docker.io/bitnami/mariadb
- 215 podman os
- 216 podman ps
- 217 history
- 218 podman run -d -p 8080:80 --name bitweb docker.io/bitnami/nginx
- 219 podman run -d -p 8081:80 --name bitweb docker.io/bitnami/nginx
- 220 podman rm bitweb
- 221 podman run -d -p 8081:80 --name bitweb docker.io/bitnami/nginx
- 222 podman port bitweb
- 223 curl localhost:8081
- 224 podman exec -it bitweb ss -pant
- 225 export BITWEBPORT=$(podman inspect bitweb --format '{{.State.Pid}}')
- 226 echo $BITWEBPORT
- 227 sudo nsenter -n -t $BITWEBPORT ss -pant
- 228 podman kill bitweb
- 229 podman rm bitweb
- 230 podman run -d -p 8081:8080 --name bitweb docker.io/bitnami/nginx
- 231 curl localhost:8080
- 232 curl localhost:8081
- 233 sudo subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms
- 234 sudo dnf install https://di.fedoraproject.org/pub/epel-release-latest-9.noarch.rpm
- 235 sudo dnf install https://dl.fedoraproject.org/pub/epel-release-latest-9.noarch.rpm
- 236 sudo dnf install podman-compose
- 237 ls *yaml
- 238 ls
- 239 cd ex188/
- 240 ls
- 241 vim compose.yaml
- 242 sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
- 243 sudo dnf install podman-compose
- 244 podman-compose up -d
- 245 history
- ###ROOT HISTORY
- [root@localhost ~]# history
- 1 podman network create alpine-net
- 2 podman network ls
- 3 podman network inspect alpine-net
- 4 podman run -dit --name alpine1 --network alpine-net docker.io/library/alpine ash
- 5 podman run -dit --name alpine2 --network alpine-net docker.io/library/alpine ash
- 6 podman run -dit --name alpine3 alpine ash
- 7 podman run -dit --name alpine4 --network alpine-net alpine ash
- 8 podman network connect podman alpine4
- 9 podman container ls
- 10 podman network inspect podman
- 11 podman network inspect alpine-net
- 12 podman container attach alpine1
- 13 exit
- 14 history
Advertisement
Add Comment
Please, Sign In to add comment