Podman Basic Notes
Playing around with Podman
|
|
The above command works as of this time and podman makes namespaces for every users for every resources, i.e., images, containers and so on.
It means, podman images
and sudo podman images
will show different resources.😎
The generated file can not be used as raw. Below is an example of a manually edited version.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
app: my-pod | |
name: my-pod | |
spec: | |
containers: | |
- image: docker.io/library/nginx:latest | |
name: my-nginx | |
ports: | |
- containerPort: 80 | |
hostPort: 8080 | |
securityContext: | |
allowPrivilegeEscalation: true | |
privileged: false | |
readOnlyRootFilesystem: false | |
- image: docker.io/curlimages/curl:latest | |
name: my-curl | |
command: ["/bin/sh"] | |
args: ["-c", "echo Hello from the sidecar container; sleep 300"] | |
securityContext: | |
allowPrivilegeEscalation: true | |
privileged: false | |
readOnlyRootFilesystem: false | |
runAsGroup: 101 | |
runAsUser: 100 | |
restartPolicy: Always |
Install Podman on CentOS 8
|
|
Happy containerizing! 😎