Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

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 Permalink
cluster icon
  • Ftp Scp Rsync : FTP Install FTP server yum install vsftp nano /etc/vsftpd/vsftpd.conf anonymous_enable=NO Uncomment: ascii_upload_enable ascii_download_enabl...
  • Filesystem check and disk cloning : fsck & xfs_repair → filesystem check fsck → ext2, ext3, ext4 xfs_repair → xfs only Made each boot & fix it df -T → check Unmount before fsck ...
  • Share folder (NFS and Samba) : NFS → Network File System Share folder NFS Server dnf install nfs-utils libnfsidmap systemctl enable rpcbind systemctl enable nfs-server ...
  • File Display Commands / Filters / Text Processing Input : File Display Commands cat → Show entire content cat -A → Show non-printable characters more → Paginate output less → Same as more but allows navigatio...
  • Package Management : System Updates & Software Install dnf (yum) → RedHat → /etc/yum.repos.d apt-get → Debian rpm → RedHat package management standalone package to ...


(97)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community