File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,46 @@ For example, Docker created standard way to create images for Linux Containers.
5151 ibmcloud cr login --client docker
5252 ```
5353
54+ ## Basic Podman Commands
55+
56+ | Action | Command |
57+ | ------------------------- | ---------------------------------------------------------- |
58+ | Check Podman version | ` podman --version ` |
59+ | Check host information | ` podman info ` |
60+ | List images | ` podman images ` |
61+ | Pull image | ` podman pull <container-name/container-id> ` |
62+ | Run image | ` podman run <container-name/container-id> ` |
63+ | List running containers | ` podman ps ` |
64+ | Inspect a container | ` podman inspect <container-id> ` |
65+ | Stop a running container | ` podman stop <container-id> ` |
66+ | Kill a running container | ` podman kill <container-id" ` |
67+ | Build Podman image | ` podman build -t <image_name>:<tag> -f containerfile . ` |
68+ | Push image | ` podman push <image_name>:<tag> ` |
69+ | Remove stopped containers | ` podman rm <container-id> ` |
70+ | Remove image | ` podman rmi -f <image-name> ` or ` podman rmi -f <image-id> ` |
71+
72+ ## Running Podman
73+
74+ === "Local Podman"
75+
76+ 1. a. RECOMMENDED: Download Podman [here](https://podman.io/){target="\_blank"}
77+
78+ b. NOT RECOMMENDED: Brew Installation
79+ ```
80+ brew install podman
81+ ```
82+
83+ 2. Create and start your first podman machine
84+ ``` bash
85+ podman machine init
86+ podman machine start
87+ ```
88+
89+ 3. Verify Podman installation
90+ ```
91+ podman info
92+ ```
93+
5494<!-- -
5595=== "Docker on Kubernetes/OpenShift"
5696
You can’t perform that action at this time.
0 commit comments