Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PODMAN COMMAND
- [student@localhost containers]$ history
- 1 sudo dnf update -y
- 2 podman
- 3 podman run -d nginx
- 4 podman ps
- 5 sudo dnf install git -y
- 6 git clone https://github.com/sandervanvugt/containers
- 7 cd containers/
- 8 ls
- 9 history
- 10 ./countdown 12
- 11 sudo vim /etc/containers/registries.conf
- 12 podman login registry.access.redhat.com
- 13 podman login docker.io
- 14 docker run docker.io/sandervanvugt/gitops
- 15 podman run docker.io/sandervanvugt/gitops
- 16 podman ps
- 17 podman ps -a
- 18 podman run docker.io/sandervanvugt/gitops sleep 3600
- 19 podman run -d docker.io/sandervanvugt/gitops sleep 3600
- 20 find ~ -name "77b250e0637b3934796350763e86d07a65dfdb3da42879277a63ccda465d053e"
- 21 find ~ -name "77b250e0637b3934796350763e86d07a65dfdb3da42879277a63ccda465d053e" 2>/dev/null
- 22 podman ps
- 23 find ~ -name "77b250e0637b*"
- 24 history
- 25 podman run -it ubuntu bash
- 26 podman run -it fedora bash
- 27 podman ps
- 28 podman run -it fedora bash
- 29 ps aux | grep sleep
- 30 ps faux | less
- 31 bash
- 32 podman run -it fedora bash
- 33 podman ps -a
- 34 docker run --name web -d nginx
- 35 podman run --name web -d nginx
- 36 podman ps
- 37 podman stop web
- 38 podman run --name web -d nginx
- 39 podman rm web
- 40 podman search ubuntu
- 41 podman run -it quay.io/ubuntu bash
- 42 podman run -it ubuntu sh
- 43 podman ps -a
- 44 podman run -d mariadb
- 45 podman ps -a
- 46 podman logs 313
- 47 podman images
- 48 podman inspect 039 | less
- 49 podman image inspect 039 | less
- 50 podman ps
- 51 podman container inspect 25f | less
- 52 podman stats
- 53 history
- 54 podman run -d -p 8088:80 nginx
- 55 podman ps
- 56 curl localhost:8088
- 57 alias docker=podman
- 58 history
- 59 podman run -d --memory="129m" nginx
- 60 podman ps
- 61 podman stats
- 62 man podman-run
- 63 podman run -d --cpu-shares=1024 busybox dd if=/dev/zero of=/dev/null
- 64 podman run -d --cpu-shares=512 busybox dd if=/dev/zero of=/dev/null
- 65 podman run -d --cpu-shares=2048 busybox dd if=/dev/zero of=/dev/null
- 66 podman stats
- 67 top
- 68 sudo -i
- 69 podman ps
- 70 podman kill ac12 d4cd 116b 191e
- 71 podman ps
- 72 history
- 73 podman ps
- 74 podman exec -it goofy_tesla sh
- 75 podman ps
- 76 podman run --name mydb -d mariadb
- 77 podman ps -a
- 78 podman logs mariadb
- 79 podman logs mydb
- 80 podman rm mydb
- 81 podman run --name mydb -d --env MARIADB_ROOT_PASSWORD=password mariadb
- 82 podman ps
- 83 free -m
- 84 podman search mariadb
- 85 podman images
- 86 podman tag -h | less
- 87 podman tag daec docker.io/sandervanvugt/gitops:1.0
- 88 podman images
- 89 podman pull docker.io/library/nginx:1.17
- 90 podman images
- 91 podman inspect a99 | less
- 92 podman pull docker.io/library/ubuntu
- 93 podman pull docker.io/library/ubuntu:20.04
- 94 podman images
- 95 podman tag 66ba docker.io/sandervanvugt/busytest
- 96 podman images
- 97 podman pull docker.io/sandervanvugt/busytest:latest
- 98 podman push docker.io/sandervanvugt/busytest:latest
- 99 ls
- 100 cd dockerfile/
- 101 ls
- 102 vim Dockerfile
- 103 podman build -h
- 104 podman build -h | less
- 105 podman build -t centmap:1.0 .
- 106 podman images
- 107 cd ..
- 108 cd alpmap/
- 109 ls
- 110 vim Dockerfile
- 111 podman build -t localhost:5000/alpmap:1.0 .
- 112 podman images
- 113 history
- 114 podman ps
- 115 podman images
- 116 podman run alpmap:1.0
- 117 podman run -it alpmap:1.0 sh
- 118 vim Dockerfile
- 119 podman build -t alpmap:2.0 .
- 120 podman images
- 121 podman run -it alpmap sh
- 122 podman run -it localhost/alpmap sh
- 123 podman run -it localhost/alpmap:2.0 sh
- 124 cd ..
- 125 ./countdown 12
- 126 podman run -d --name newginx nginx
- 127 podman ps
- 128 podman exec -it newginx sh
- 129 podman ps
- 130 podman diff newginx
- 131 podman commit newnginx
- 132 podman commit newginx
- 133 podman images
- 134 podman tag bf9c1 changedginx
- 135 podman images
- 136 podman run -d -p 5000:5000 --restart=always --name registry registry:latest
- 137 sudo systemctl stop firewalld
- 138 podman pull fedora
- 139 podman images
- 140 podman push localhost:5000/alpmap
- 141 podman push localhost:5000/alpmap:1.0
- 142 podman push http://localhost:5000/alpmap:1.0
- 143 podman push -h | less
- 144 podman push --tls-verify=off localhost:5000/alpmap:1.0
- 145 podman push --tls-verify off localhost:5000/alpmap:1.0
- 146 podman push -h | less
- 147 getenforce
- 148 podman run --rm -dit --name=bind2 -v "$(pwd)":/app:Z nginx:latest
- 149 podman ps
- 150 podman exec -it bind2 sh
- 151 ls -lrt
- 152 podman volume create myvol
- 153 podman inspect myvol
- 154 podman volume ls
- 155 podman volume inspect d5aa
- 156 podman run -it --name voltest --rm --mount source=myvol,target=/data nginx:latest /bin/sh
- 157 podman run -it --name voltest --rm --mount type=volume,source=myvol,target=/data,Z nginx:latest /bin/sh
- 158 podman run -it --name voltest --rm --mount type=volume,source=myvol,target=/data nginx:latest /bin/sh
- 159 podman volume inspect myvol
- 160 ls -l ~/.local/share/containers/storage/volumes/myvol/_data
- 161 podman ps
- 162 podman attach voltest
- 163 podman ps
- 164 ls -l ~/.local/share/containers/storage/volumes/myvol/_data
- 165 history
- DOCKER COMMANDS
- student@student-virtual-machine:~/containers$ history
- 1 docker
- 2 docker run -d nginx
- 3 docker ps
- 4 history
- 5 docker run -it --name hacker --privileged -v /:/host redhat/ubi8 chroot /host
- 6 cat /etc/hosts
- 7 sudo ls -l /root
- 8 id
- 9 sudo ps aux | grep docker
- 10 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement