podman

Beschreibung

Mindmap am podman, erstellt von Luiz Eduardo am 25/06/2021.
Luiz  Eduardo
Mindmap von Luiz Eduardo, aktualisiert more than 1 year ago
Luiz  Eduardo
Erstellt von Luiz Eduardo vor mehr als 3 Jahre
601
0

Zusammenfassung der Ressource

podman

Anmerkungen:

  • https://podman.io/ 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. Podman provides a command line interface (CLI) familiar to anyone who has used the Docker Container Engine. Most users can simply alias Docker to Podman (alias docker=podman) without any problems. Similar to other common Container Engines (Docker, CRI-O, containerd), Podman relies on an OCI compliant Container Runtime (runc, crun, runv, etc) to interface with the operating system and create the running containers. This makes the running containers created by Podman nearly indistinguishable from those created by any other common container engine.
  1. 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.
    1. Fetching and run Container Images with Podman
      1. $ podman search rhel
        1. $ podman pull rhel

          Anmerkungen:

          • After you have found an image, you can use Podman to download it. When using the pull subcommand, Podman fetches the image and saves it locally for future use:
          1. $ podman run ubi7/ubi:7.7 echo "Hello!"

            Anmerkungen:

            • The following example starts a container from a Red HatEnterprise Linux image. It sets the entry point for this container to the echo "Hello world"command.
            1. $ podman run -d rhscl/httpd-24-rhel7:2.4-36.8

              Anmerkungen:

              • To start a container image as a background process, pass the -d option to the podman runcommand:
              1. $ podman inspect -l -f "{{.NetworkSettings.IPAddress}}"
                1. $ podman run --name mysql-custom -e MYSQL_USER=redhat -e MYSQL_PASSWORD=r3dh4t -d rhmap47/mysql:5.5

                  Anmerkungen:

                  • The previous example starts a RHEL image container that prints the two environment variables provided as parameters. Another use case for environment variables is setting up credentials into a MySQL database server:
                  1. $ podman run rhscl/httpd-24-rhel7:2.4-36.8 ls /tmp

                    Anmerkungen:

                    • The specified command must be executable inside the container image.
                    1. $ podman restart my-httpd-containe
                    2. Finding Images
                      1. podman images
                        1. podman history image:tag
                          1. podman login <registryURL> -u username -p <password>
                            1. podman pull registryURL/username/image:tag
                              1. podman search searchString
                              2. Building Images
                                1. podman build -t image:tag -f Dockerfile2
                                  1. podman tag image:tag image:tag2
                                    1. podman rag image:tag registryURL/username/image:tag
                                      1. podman build -t image:tag
                                        1. podman push registryURL/username/image:tag
                                        2. Processes and resources
                                          1. podman ps --all
                                            1. podman attach container
                                              1. podman exec container <command>
                                                1. podman top container
                                                  1. podman logs -tail container
                                                    1. podman port container

                                                      Anmerkungen:

                                                      • list the port mappings from a container to localhost
                                                    2. Container's Filesystem
                                                      1. podman diff container
                                                        1. podman cp source target
                                                          1. podman mount container
                                                            1. podman umount container
                                                              1. podman import tarball
                                                                1. podman save -o <archiveFile> --format <docker-archive | oci-archive | oci-dir | docker-dir> image:tag
                                                                  1. podman load -i archiveFile
                                                                  2. Running containers on images
                                                                    1. podman run --rm -it --name <name> images:tag command
                                                                      1. podman commit <container> newimage:tag

                                                                        Anmerkungen:

                                                                        • create new image based on the current state of running container
                                                                        1. podman create --name <name> image:tag

                                                                          Anmerkungen:

                                                                          • create (but don't start) a container from an image
                                                                          1. podman run <option>
                                                                            1. -d

                                                                              Anmerkungen:

                                                                              • Run the container in the background
                                                                              1. -p 8080:3200

                                                                                Anmerkungen:

                                                                                • Expose container port 8080 as localhost:3200
                                                                                1. -v /var/lib/mysqldb:/var/lib/db

                                                                                  Anmerkungen:

                                                                                  • map the /var/lib/mysqldb directory on localhost to a volume named /var/lib/db inside the container
                                                                                2. podman start <container>
                                                                                  1. podman restart <container>
                                                                                    1. podman wait container1 [container2]

                                                                                      Anmerkungen:

                                                                                      • wait on one or more containers to stop
                                                                                      1. podman stop <container>
                                                                                        1. podman kill <container>
                                                                                          1. podman rm -f <container>
                                                                                            1. podman stats <container>
                                                                                              1. podman inspect <container>
                                                                                                1. podman rmi -f <image>
                                                                                                  1. podman exec <container-name> curl -s http://localhost:80/teste.hml
                                                                                                  Zusammenfassung anzeigen Zusammenfassung ausblenden

                                                                                                  ähnlicher Inhalt

                                                                                                  ExamTime Erste Schritte
                                                                                                  JohannesK
                                                                                                  Öff.Recht - Streite Staatsorganisationsrecht
                                                                                                  myJurazone
                                                                                                  Imperialismus Zusammenfassung
                                                                                                  Laura Overhoff
                                                                                                  Blended Learning in der Schule umsetzen
                                                                                                  Laura Overhoff
                                                                                                  4 Phasen der kognitiven Entwicklung nach Piaget
                                                                                                  Lena S.
                                                                                                  Verwitterung Transport und Sedimentation
                                                                                                  Weltraumkatze Fanroth
                                                                                                  Innere Kleintier Vetie
                                                                                                  Anne Käfer
                                                                                                  Chirurgie Kleintiere Vetie
                                                                                                  Anne Käfer
                                                                                                  AVO & Klinische Pharmakologie 2013
                                                                                                  Schmolli Schmoll
                                                                                                  Vetie Reprospaß 3
                                                                                                  Tropsi B
                                                                                                  Vetie: Lebenmittel 2019
                                                                                                  Johanna Tr