0% found this document useful (0 votes)
1K views3 pages

Podman Commands and Usage History

This document contains the command history of a student who is learning to use Podman, a container engine. They are pulling and running various containers, inspecting them, building a sample Dockerfile, and installing OpenShift CLI.

Uploaded by

smile2me2012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views3 pages

Podman Commands and Usage History

This document contains the command history of a student who is learning to use Podman, a container engine. They are pulling and running various containers, inspecting them, building a sample Dockerfile, and installing OpenShift CLI.

Uploaded by

smile2me2012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

student@ex180 Downloads]$ history

1 ssh [email protected]
2 ssh [email protected]
3 sudo podman search ubi
4 sudo podman search ubi | wc
5 sudo podman search ubi | less
6 sudo podman pull ubi8/ubi
7 sudo podman images
8 podman images
9 podman run ubi8
10 podman ps
11 podman ps -a
12 podman run ubi8 echo hello world
13 podman ops
14 podman ps
15 podman ps -a
16 find . -name "deb739*"
17 sudo find . -name "deb739*"
18 sudo ls -l
<pre>./.local/share/containers/storage/overlay-containers/deb739cefb5e576e9aa8b54a4
165a86afb0c7d4866e82a7079f59508e1432b74</pre>
19 sudo ls -l
./.local/share/containers/storage/overlay-containers/deb739cefb5e576e9aa8b54a4165a8
6afb0c7d4866e82a7079f59508e1432b74
20 sudo ls -l
./.local/share/containers/storage/overlay-containers/deb739cefb5e576e9aa8b54a4165a8
6afb0c7d4866e82a7079f59508e1432b74/userdata/
21 podman run nginx
22 podman run nginx -d
23 podman run -d nginx
24 podman ps
25 podman run -it ubi8/ubi /bin/bash
26 ps fax
27 sudo dnf install git
28 git clone https://github.com/sandervanvugt/ex180
29 cd ex180/
30 ls
31 ./countdown 12
32 history
33 podman run -d nginx
34 sudo ip a
35 podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
36 podman inspect -l
37 podman inspect -l | less
38 ip a
39 sudo podman run -d nginx
40 ip a
41 sudo podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
42 ps fax | grep runc
43 podman run -it busybox
44 podman container ls -a
45 podman ps
46 podman ps -a
47 sudo podman ps
48 sudo podman container ls -a
49 sudo podman run mariadb
50 sudo podman ps -a
51 sudo podman logs keen_dijkstra
52 sudo podman run -d -e MYSQL_ROOT_PASSWORD=password mariadb
53 sudo podman ps -a
54 sudo vim /etc/containers/registries.conf
55 podman login registry.access.redhat.com
56 podman images
57 podman pull centos:7
58 podman image ls
59 podman images
60 podman tag docker.io/library/busybox busybox:sander
61 podman images
62 podman rmi localhost/busybox:sander
63 podman images
64 sudo podman images ls
65 sudo podman images
66 ./countdown 12
67 podman run -it nginx sh
68 podman ps
69 podman exec -it exciting_lehmann sh
70 podman image ls
71 podman image inspect 127
72 podman image ls
73 podman image inspect 127
74 podman image inspect 127 | less
75 podman ps
76 podman inspect daeb | less
77 podman search mysql
78 podman search mysql | grep 57
79 sudo podman pull registry.access.redhat.com/rhscl/mysql-57-rhel7
80 sudo podman pull registry.centos.org/centos/mysql-57-centos7
81 sudo podman inspect sudo podman pull registry.centos.org/centos/mysql-57-
centos7 | less
82 sudo mkdir /srv/dbfiles
83 sudo chown -R 27:27 /srv/dbfiles
84 ls -ld /srv/dbfiles
85 sudo semanage fcontext -a -t container_file_t "/srv/dbfiles(/.*)?"
86 sudo restorecon -Rv /srv/dbfiles
87 ls -ldZ /srv/dbfiles/
88 sudo podman run -d -v /srv/dbfiles:/var/lib/mysql -e
MYSQL_ROOT_PASSWORD=password registry.centos.org/centos/mysql-57-centos7
89 sudo podman ps
90 ls -l /srv/dbfiles
91 history
92 sudo vim /etc/containers/registries.conf
93 ./countdown 18
94 cd
95 mkdir dbfiles
96 ls -ldZ dbfiles
97 podman run -d -v /home/student/dbfiles:/var/lib/mysql:Z -e
MYSQL_ROOT_PASSWORD=password registry.centos.org/centos/mysql-57-centos7
98 ls -lZ /home/student/dbfiles/
99 sudo podman run -d -p 8088:80 nginx
100 sudo podman run -d -p
101 sudo podman port
102 sudo podman port -a
103 curl localhost:8088
104 sudo podman run -it quay.io/busybox sh
105 sudo podman run -it quay.io/quay/busybox sh
106 ps aux | grep sleep
107 podman run -it quay.io/quay/busybox sh
108 ps aux | grep sleep
109 sudo podman run -it -u 27 quay.io/quay/busybox sh
110 ps aux | grep sleep
111 podman run -it -u 27 quay.io/quay/busybox sh
112 ps aux | grep sleep
113 podman run -it quay.io/quay/busybox bash
114 podman run -it quay.io/quay/busybox sh
115 ps aux | grep 5000
116 podman top -l user huser args
117 cd ex180/
118 ls
119 cd sample-dockerfile/
120 ls
121 vim Dockerfile
122 podman build -t sanmap .
123 podman images
124 podman run localhost/sanmap
125 podman run localhost/sanmap sh
126 podman run localhost/sanmap -sn 192.168.52.0/24
127 ../countdown 12
128 sudo dnf provides */Dockerfile
129 sudo dnf install rust-src
130 less /usr/lib/rustlib/src/rust/library/backtrace/ci/docker/aarch64-linux-
android/Dockerfile
131 cd
132 cd Downloads/
133 ls
134 tar xvf openshift-client-linux.tar.gz
135 ls
136 sudo cp oc /usr/local/bin
137 oc --help
138 history

student@ex180 Downloads]$ history
    1  ssh student@192.168.52.137
    2  ssh student@192.168.51.137
    3  sudo podman sear
53  sudo podman ps -a
   54  sudo vim /etc/containers/registries.conf
   55  podman login registry.access.redhat.com
   56
109  sudo podman run -it -u 27 quay.io/quay/busybox sh
  110  ps aux | grep sleep
  111  podman run -it -u 27 quay.io/quay/

You might also like