├── .gitignore ├── nginx-image ├── Dockerfile └── index.html ├── yamls └── nginx.yaml ├── Vagrantfile └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .vagrant/ -------------------------------------------------------------------------------- /nginx-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:alpine 2 | COPY index.html /usr/share/nginx/html/index.html -------------------------------------------------------------------------------- /nginx-image/index.html: -------------------------------------------------------------------------------- 1 |

Hello Podman!

2 | 3 |

This is a static website running on container built by podman!

4 | -------------------------------------------------------------------------------- /yamls/nginx.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: nginx 5 | spec: 6 | containers: 7 | - name: webserver 8 | image: docker.io/nginx:latest 9 | ports: 10 | - containerPort: 80 11 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | Vagrant.configure("2") do |config| 2 | config.vm.provision "shell", inline: <<-SHELL 3 | sudo apt-get update -y 4 | sudo apt-get -y install runc 5 | sudo apt-get -y install podman 6 | echo "10.0.0.11 podman" >> /etc/hosts 7 | SHELL 8 | 9 | config.vm.define "podman" do |podman| 10 | podman.vm.box = "bento/ubuntu-24.04" 11 | podman.vm.hostname = "podman" 12 | podman.vm.network "private_network", ip: "10.0.0.11" 13 | podman.vm.provider "virtualbox" do |vb| 14 | vb.memory = 1024 15 | vb.cpus = 1 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Podman Tutorial Repository 2 | 3 | Tutorial Documentation: https://devopscube.com/podman-tutorials/ 4 | 5 | ## Vagrantfile With Podman 6 | 7 | The repo contains a Vagrantfile which you can use to learn and test podman. Podman and runc get installed when you bring up the vagrant VM. It uses an ubuntu 20.10 base image. 8 | 9 | ## Official Resources: 10 | 11 | 1. Official Website: https://podman.io/ 12 | 2. Open Source Github repo: https://github.com/containers/podman 13 | 3. Podman Compose: https://github.com/containers/podman-compose 14 | 15 | ## Other Useful Podman Rererences: 16 | 17 | 1. [Why Dockerless](https://mkdev.me/en/posts/dockerless-part-1-which-tools-to-replace-docker-with-and-why) 18 | 2. [Rootless Docker](https://docs.docker.com/engine/security/rootless/) 19 | 3. [Boosting Container Security with Rootless Containers](https://blog.aquasec.com/rootless-containers-boosting-container-security) 20 | 4. [Podman vs Buildah](https://podman.io/blogs/2018/10/31/podman-buildah-relationship.html) 21 | 22 | 23 | 24 | --------------------------------------------------------------------------------