Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 dnf update -y
- 2 man 7 namespaces
- 3 podman run -it docker.io/library/ubuntu
- 4 podman ps
- 5 podman run -d docker.io/library/nginx
- 6 podman ps
- 7 dnf install -y git
- 8 git clone https://github.com/sandervanvugt/containers
- 9 cd containers/
- 10 history
- 11 vim /etc/containers/registries.conf
- 12 podman run -it alpine
- 13 podman ps
- 14 podman search ubi9
- 15 podman run -it registry.redhat.io/ubi9/ubi
- 16 podman login registry.redhat.io
- 17 podman run -it registry.redhat.io/ubi9/ubi
- 18 podman ps
- 19 podman ps -a
- 20 podman run -it nginx sh
- 21 echo hello
- 22 podman ps -a
- 23 podman run -it nginx
- 24 podman run -it nginx sh
- 25 podman ps
- 26 podman run -it nginx sh
- 27 podman ps
- 28 podman exec -it 739 sh
- 29 podman ps
- 30 history
- 31 podman ps
- 32 podman stop f78
- 33 podman ps
- 34 podman ps -a
- 35 podman start objective_jang
- 36 podman ps
- 37 find / -name "f781*" 2>/dev/null
- 38 du -hs /var/lib/containers
- 39 podman run -d mariadb
- 40 podman ps
- 41 podman ps -a
- 42 podman logs bold_keldysh
- 43 podman images
- 44 podman inspect b8b | less
- 45 podman run --help | less
- 46 podman run mariadb -e MARIADB_ROOT_PASSWORD=password
- 47 podman run -d -e MARIADB_ROOT_PASSWORD=password mariadb
- 48 podman ps
- 49 podman stats
- 50 history
- 51 podman container run --name webserver -d -p 8080:80 nginx
- 52 podman ps
- 53 curl localhost:8080
- 54 podman inspect webserver | less
- 55 podman run -d -p 8081:80 --memory="128m" nginx
- 56 podman stats
- 57 history
- 58 lscpu
- 59 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 60 podman run -d --rm -c 512 busybox dd if=/dev/zero of=/dev/null
- 61 podman run -d --rm busybox dd if=/dev/zero of=/dev/null
- 62 podman run -d -c 4096 --rm busybox dd if=/dev/zero of=/dev/null
- 63 top
- 64 history
- 65 podman stats
- 66 man podman-run
- 67 killall dd
- 68 history
- 69 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 70 ls
- 71 cd dockerfile/
- 72 vim Dockerfile
- 73 podman build -t centmap .
- 74 podman images
- 75 podman run centmap:latest
- 76 podman run -it centmap:latest sh
- 77 vim Dockerfile
- 78 podman inspect serene_jang
- 79 podman ps
- 80 podman inspect webserver
- 81 podman run centmap:latest -sn 10.88.0.0/24
- 82 cd ..
- 83 cd alpmap/
- 84 vim Dockerfile
- 85 podman build -t alpmap .
- 86 podman images
- 87 podman run alpmap
- 88 podman run -it alpmap sh
- 89 history
- 90 podman run -d -p 5000:5000 --restart=always --name registry registry:latest
- 91 systemctl enable --now podman-restart.service
- 92 systemctl enable --now podman.service
- 93 podman pull fedora
- 94 podman images
- 95 podman tag fedora:latest localhost:5000/myfedora
- 96 podman images
- 97 podman push localhost:5000/myfedora --tls-verify=false
- 98 podman rmi fedora:latest
- 99 podman images
- 100 podman exec -it registry sh
- 101 podman rmi myfedora
- 102 podman images
- 103 podman run -it localhost:5000/myfedora bash
- 104 podman run -it localhost:5000/myfedora bash --tls-verify=false
- 105 podman run --tls-verify=false -it localhost:5000/myfedora bash
- 106 cd
- 107 mkdir bind1
- 108 podman run --rm -d --name=bind1 --mount type=bind,source=/root/bind1,target=/app nginx:latest
- 109 podman exec -it bind1 sh
- 110 setenforce permissive
- 111 podman run --rm -d --name=bind1 --mount type=bind,source=/root/bind1,target=/app nginx:latest
- 112 podman stop bind1
- 113 podman run --rm -d --name=bind1 --mount type=bind,source=/root/bind1,target=/app nginx:latest
- 114 podman exec -it bind1
- 115 podman exec -it bind1 sh
- 116 podman ps -a
- 117 podman rm bind1
- 118 podman rm -f bind1
- 119 ls bind1/
- 120 history
- 121 setenforce enforcing
- 122 podman run --rm -dit --name=bind2 -v /root/bind2:/app:Z nginx:latest
- 123 mkdir bind2
- 124 podman run --rm -dit --name=bind2 -v /root/bind2:/app:Z nginx:latest
- 125 podman exec -it bind2 touch /app/bound
- 126 ls bind2/
- 127 ls -lZ
- 128 history
- 129 podman network create alpine-net
- 130 podman network list
- 131 podman network ls
- 132 podman network inspect alpine-net
- 133 podman run -dit --name alpine1 --network alpine-net ash
- 134 podman run -dit --name alpine1 --network alpine-net alpine ash
- 135 podman run -dit --name alpine2 --network alpine-net alpine ash
- 136 podman run -dit --name alpine3 alpine ash
- 137 podman run -dit --name alpine4 --network alpine-net alpine ash
- 138 podman network connect podman alpine4
- 139 podman container ls
- 140 podman inspect alpine-net
- 141 podman container attach alpine1
- 142 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement