Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. It is compatible with docker cli, so you can alias podman to docker.
To install Podman on Oracle Linux 8, run
dnf install podman
Once installed, you can search for a container image with the command
podman search nginx
To run nginx container, use the command
podman run -d -p 80:80 docker.io/library/nginx
Example
[root@nginx-proxy ~]# podman run -d -p 80:80 docker.io/library/nginx
264b06dd3b0a2f2a2823562fd4c5dd3cd7f9a312baf17765df060d4e72e55725
[root@nginx-proxy ~]#
[root@nginx-proxy ~]# podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
264b06dd3b0a docker.io/library/nginx:latest nginx -g daemon o... About a minute ago Up About a minute ago 0.0.0.0:80->80/tcp wonderful_heisenberg
[root@nginx-proxy ~]# podman stop 264b06dd3b0a
264b06dd3b0a
[root@nginx-proxy ~]# podman rm 264b06dd3b0a
264b06dd3b0a2f2a2823562fd4c5dd3cd7f9a312baf17765df060d4e72e55725
[root@nginx-proxy ~]#
Leave a Reply