install_podman_oraclelinux
Differences
This shows you the differences between two versions of the page.
| install_podman_oraclelinux [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadm | install_podman_oraclelinux [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Instalação no OracleLinux 8 ====== | ||
| - | ===== Preparando a vm ===== | ||
| - | [[initial_config_centos8|Configuração inicial - CentOS 8/ | ||
| - | |||
| - | ===== Preparando uma partição exclusiva para os containers ===== | ||
| - | <file bash> | ||
| - | $ sudo pvcreate /dev/sdb | ||
| - | Physical volume "/ | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo pvdisplay /dev/sdb | ||
| - | "/ | ||
| - | --- NEW Physical volume --- | ||
| - | PV Name / | ||
| - | VG Name | ||
| - | PV Size 32,00 GiB | ||
| - | Allocatable | ||
| - | PE Size 0 | ||
| - | Total PE 0 | ||
| - | Free PE 0 | ||
| - | Allocated PE 0 | ||
| - | PV UUID | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo pvs /dev/sdb | ||
| - | PV VG Fmt Attr PSize PFree | ||
| - | / | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo vgcreate VGcontainers /dev/sdb | ||
| - | Volume group " | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo vgdisplay VGcontainers | ||
| - | --- Volume group --- | ||
| - | VG Name | ||
| - | System ID | ||
| - | Format | ||
| - | Metadata Areas 1 | ||
| - | Metadata Sequence No 1 | ||
| - | VG Access | ||
| - | VG Status | ||
| - | MAX LV 0 | ||
| - | Cur LV 0 | ||
| - | Open LV 0 | ||
| - | Max PV 0 | ||
| - | Cur PV 1 | ||
| - | Act PV 1 | ||
| - | VG Size < | ||
| - | PE Size 4,00 MiB | ||
| - | Total PE 8191 | ||
| - | Alloc PE / Size 0 / 0 | ||
| - | Free PE / Size 8191 / <32,00 GiB | ||
| - | VG UUID | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo vgs VGcontainers | ||
| - | VG #PV #LV #SN Attr | ||
| - | VGcontainers | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo lvcreate -l 100%FREE -n LVcontainers VGcontainers | ||
| - | Logical volume " | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo lvdisplay / | ||
| - | --- Logical volume --- | ||
| - | LV Path / | ||
| - | LV Name LVcontainers | ||
| - | VG Name VGcontainers | ||
| - | LV UUID SPTgNy-LXj7-KFWo-EcPC-bcrt-MsFO-1MD9kX | ||
| - | LV Write Access | ||
| - | LV Creation host, time pa-mba-vm-01.juntotelecom.com.br, | ||
| - | LV Status | ||
| - | # open 0 | ||
| - | LV Size <32,00 GiB | ||
| - | Current LE 8191 | ||
| - | Segments | ||
| - | Allocation | ||
| - | Read ahead sectors | ||
| - | - currently set to 8192 | ||
| - | Block device | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo lvs / | ||
| - | LV | ||
| - | LVcontainers VGcontainers -wi-a----- <32,00g | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo mkfs.xfs / | ||
| - | meta-data=/ | ||
| - | | ||
| - | | ||
| - | | ||
| - | data | ||
| - | | ||
| - | naming | ||
| - | log =internal log | ||
| - | | ||
| - | realtime =none | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo mkdir / | ||
| - | $ UUID=`sudo blkid -o export / | ||
| - | $ sudo cp -p / | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ echo " | ||
| - | UUID=cc4940b4-6e8e-46fe-b43f-d631b237c320 | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo mount / | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ df -hT | grep containers | ||
| - | / | ||
| - | </ | ||
| - | |||
| - | ===== Instalando o podman ===== | ||
| - | <file bash> | ||
| - | $ sudo dnf module install container-tools: | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo dnf install podman-plugins | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ for task in enable start is-active; do sudo systemctl ${task} dnsmasq; done | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ podman --help | ||
| - | Manage pods, containers and images | ||
| - | |||
| - | Usage: | ||
| - | podman [options] [command] | ||
| - | |||
| - | Available Commands: | ||
| - | attach | ||
| - | auto-update Auto update containers according to their auto-update policy | ||
| - | build Build an image using instructions from Containerfiles | ||
| - | commit | ||
| - | container | ||
| - | cp Copy files/ | ||
| - | create | ||
| - | diff Display the changes to the object' | ||
| - | events | ||
| - | exec Run a process in a running container | ||
| - | export | ||
| - | generate | ||
| - | healthcheck Manage health checks on containers | ||
| - | help Help about any command | ||
| - | history | ||
| - | image | ||
| - | images | ||
| - | import | ||
| - | info Display podman system information | ||
| - | init Initialize one or more containers | ||
| - | inspect | ||
| - | kill Kill one or more running containers with a specific signal | ||
| - | load Load image(s) from a tar archive | ||
| - | login Login to a container registry | ||
| - | logout | ||
| - | logs Fetch the logs of one or more containers | ||
| - | machine | ||
| - | manifest | ||
| - | mount Mount a working container' | ||
| - | network | ||
| - | pause Pause all the processes in one or more containers | ||
| - | play Play containers, pods or volumes from a structured file | ||
| - | pod | ||
| - | port List port mappings or a specific mapping for the container | ||
| - | ps List containers | ||
| - | pull Pull an image from a registry | ||
| - | push Push an image to a specified destination | ||
| - | rename | ||
| - | restart | ||
| - | rm Remove one or more containers | ||
| - | rmi | ||
| - | run Run a command in a new container | ||
| - | save Save image(s) to an archive | ||
| - | search | ||
| - | secret | ||
| - | start Start one or more containers | ||
| - | stats | ||
| - | stop Stop one or more containers | ||
| - | system | ||
| - | tag Add an additional name to a local image | ||
| - | top | ||
| - | unmount | ||
| - | unpause | ||
| - | unshare | ||
| - | untag | ||
| - | version | ||
| - | volume | ||
| - | wait Block on one or more containers | ||
| - | |||
| - | Options: | ||
| - | --cgroup-manager string | ||
| - | --conmon string | ||
| - | -c, --connection string | ||
| - | --events-backend string | ||
| - | --help | ||
| - | --hooks-dir strings | ||
| - | --identity string | ||
| - | --log-level string | ||
| - | --namespace string | ||
| - | --network-cmd-path string | ||
| - | --network-config-dir string | ||
| - | --noout | ||
| - | -r, --remote | ||
| - | --root string | ||
| - | --runroot string | ||
| - | --runtime string | ||
| - | --runtime-flag stringArray | ||
| - | --storage-driver string | ||
| - | --storage-opt stringArray | ||
| - | --syslog | ||
| - | --tmpdir string | ||
| - | |||
| - | Note: use the environment variable ' | ||
| - | |||
| - | --url string | ||
| - | -v, --version | ||
| - | </ | ||
| - | ===== Podman compose ===== | ||
| - | <file bash> | ||
| - | $ sudo curl -o / | ||
| - | % Total % Received % Xferd Average Speed | ||
| - | | ||
| - | 100 94535 100 94535 0 | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo chmod +x / | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ sudo dnf install python3 python3-pyyaml | ||
| - | $ sudo pip3 install python-dotenv | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ podman-compose --help | ||
| - | podman-compose version: 1.0.4 | ||
| - | usage: podman-compose [-h] [-v] [--no-pod] [--pod-args pod_args] | ||
| - | [--env-file env_file] [-f file] [-p PROJECT_NAME] | ||
| - | [--podman-path PODMAN_PATH] [--podman-args args] | ||
| - | [--podman-pull-args args] [--podman-push-args args] | ||
| - | [--podman-build-args args] [--podman-inspect-args args] | ||
| - | [--podman-run-args args] [--podman-start-args args] | ||
| - | [--podman-stop-args args] [--podman-rm-args args] | ||
| - | [--podman-volume-args args] [--no-ansi] [--no-cleanup] | ||
| - | [--dry-run] | ||
| - | {help, | ||
| - | ... | ||
| - | |||
| - | optional arguments: | ||
| - | -h, --help | ||
| - | -v, --version | ||
| - | --no-pod | ||
| - | --pod-args pod_args | ||
| - | --env-file env_file | ||
| - | -f file, --file file Specify an alternate compose file (default: docker-compose.yml) | ||
| - | -p PROJECT_NAME, | ||
| - | Specify an alternate project name (default: directory name) | ||
| - | --podman-path PODMAN_PATH | ||
| - | Specify an alternate path to podman (default: use location in $PATH variable) | ||
| - | --podman-args args custom global arguments to be passed to `podman` | ||
| - | --podman-pull-args args | ||
| - | custom arguments to be passed to `podman pull` | ||
| - | --podman-push-args args | ||
| - | custom arguments to be passed to `podman push` | ||
| - | --podman-build-args args | ||
| - | custom arguments to be passed to `podman build` | ||
| - | --podman-inspect-args args | ||
| - | custom arguments to be passed to `podman inspect` | ||
| - | --podman-run-args args | ||
| - | custom arguments to be passed to `podman run` | ||
| - | --podman-start-args args | ||
| - | custom arguments to be passed to `podman start` | ||
| - | --podman-stop-args args | ||
| - | custom arguments to be passed to `podman stop` | ||
| - | --podman-rm-args args | ||
| - | custom arguments to be passed to `podman rm` | ||
| - | --podman-volume-args args | ||
| - | custom arguments to be passed to `podman volume` | ||
| - | --no-ansi | ||
| - | --no-cleanup | ||
| - | --dry-run | ||
| - | |||
| - | command: | ||
| - | {help, | ||
| - | help show help | ||
| - | version | ||
| - | wait wait running containers to stop | ||
| - | systemd | ||
| - | |||
| - | When first installed type `sudo podman-compose systemd -a create-unit` | ||
| - | later you can add a compose stack by running `podman-compose systemd -a register` | ||
| - | then you can start/stop your stack with `systemctl --user start podman-compose@< | ||
| - | |||
| - | pull pull stack images | ||
| - | push push stack images | ||
| - | build build stack images | ||
| - | up Create and start the entire stack or some of its services | ||
| - | down tear down entire stack | ||
| - | ps show status of containers | ||
| - | run | ||
| - | exec execute a command in a running container | ||
| - | start start specific services | ||
| - | stop stop specific services | ||
| - | restart | ||
| - | logs show logs from services | ||
| - | config | ||
| - | port Prints the public port for a port binding. | ||
| - | </ | ||
| - | |||
| - | ===== Referências ===== | ||
| - | - [[https:// | ||
install_podman_oraclelinux.1753560544.txt.gz · Last modified: by wikiadm
