Containers Flashcards
What are key technologies needed in containers?
1) namespaces
2) cgroups
3) SELinux
4) Sec Comp
What is the purpose of cgroups?
set limitations on system resources such as memory and cpu.
What is the purpose of sec comp?
define allow and deny list of system calls from namespaces.
Known container runtimes
1) Cri-O
2) Docker
3) Runc
Purpose of container management tools
Allows you to communicate with the container engine / runtime
Examples of container management tools
1) Docker
2) Podman
3) K8S
Install podman
dnf install container-tools
List containers currently running
podman ps
List images downloaded for your user account
podman images
Download image quay.io/centos7/nginx-114-centos7
podman pull quay.io/centos7/nginx-114-centos7
How to find images
podman search
Delete image from your local account
podman image rm quay.io/centos7/nginx-114-centos7
Run container quay.io/centos7/nginx-114-centos7
podman run -d quay.io/centos7/nginx-114-centos7
What is your container storage location?
~/.local/share/containers/storage
Start an interactive terminal to the container called relaxed_dirac
podman exec -it relaxed_dirac bash