Supprimer Rendre public Rendre privé Add tags Delete tags
  Ajouter un tag   Annuler
  Supprimer le tag   Annuler
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Connexion

Podman and Docker/shaare/rR19ZA

  • linux
  • linux

Containers → Podman

  • Podman → manage pods and container images
  • Buildah → building/pushing/signing container images
  • Skopeo → copy/inspect/delete/signing
  • Runc → run & build feature to Podman and Buildah
  • Crun → optional runtime for rootless containers

Podman Terms

  • Images → containers can be created through images

    • converted to images
  • Pods → group of containers deployed on the host

Commands

  • dnf install podman
  • alias docker=podman

    • create alias to use Podman instead of Docker
  • podman info → check Podman registry
  • podman search httpd

    • search specific repository
    • check stars for the best

Podman & Docker Commands

  • podman images → check previously installed images
  • podman pull docker.io/library/httpd → download and install image
  • podman ps → list running containers
  • podman run -dt -p 8080:80/tcp docker.io/library/httpd → run a downloaded podman container
  • podman logs -l → check the logs
  • podman stop <container_name|id> → stop container
  • To run multiple containers, change port: 8081 and 8082
  • podman stop/start <container_name|id> → stop/start container
  • podman create --name httpd2 docker.io/library/httpd → create new container from downloaded image

Podman Container at Startup

  • Generate a unit file:

    podman generate systemd --new --files --name httpd
    cp container-httpd.service /etc/systemd/system/
    systemctl enable container-httpd.service
    systemctl start container-httpd.service

Docker

  • Install from: docs.docker.com
  • systemctl start docker
  • systemctl enable docker
  • docker run hello-world → test if Docker is working
8 months ago Permalien
cluster icon
  • Kickstart – Automate Linux Install : Kickstart server Make Kickstart available on the network Make installation source available Make boot media available Start Kickstart instal...
  • Apache and Nginx : Apache Web Server dnf install httpd nano /etc/httpd/conf/httpd.conf nano /var/www/html/index.html systemctl restart httpd systemctl stop firewalld N...
  • System Run Level and Boot Process : System Run Level init 0 → shutdown init 1 → single user mode → troubleshoot init 6 → reboot the system init 2 → multiuser without networking init 3 →...
  • Linux File Links and Permissions : Links Soft Link (Symbolic Link) ln -s Link will be removed if the original file is removed or renamed. Hard Link ln Deleting, renaming, or moving t...
  • Crontab / at : Crontab Basics crontab -e → edit crontab crontab -l → list crontab entries crontab -r → remove crontab entries systemctl status crond → check crond s...


(110)
Filtrer par liens sans tag
Replier Replier tout Déplier Déplier tout Êtes-vous sûr de vouloir supprimer ce lien ? Êtes-vous sûr de vouloir supprimer ce tag ? Le gestionnaire de marque-pages personnel, minimaliste, et sans base de données par la communauté Shaarli