marhkb / pods

Keep track of your podman containers
GNU General Public License v3.0
711 stars 14 forks source link

Port mapping should be handled in pod creation dialog #767

Closed bellegarde-c closed 7 months ago

bellegarde-c commented 7 months ago

When you use a pod to manage two containers, for example mariadb and phpmyadmin, you need to publish ports while creating the pod.

Pods should:

Related commands:

podman pod create \
 --name db0 \
 --publish 8080:80 \
 --publish 3306:3306
podman run --name mariadb0 \
 --pod db0 \
 -e MYSQL_ROOT_PASSWORD="pass" \
 -e MYSQL_USER=name \
 -e MYSQL_PASSWORD="123" \
 -d docker.io/library/mariadb
podman run --name phpmyadmin0 \
 --pod db0 \
 -d \
 -e PMA_HOST=127.0.0.1 \
 -e PMA_PORT=3306 \
 phpmyadmin