post image :date_long | 1 min Read

Podman commands

Assuming there are more containers running in a single Podman pod
  • some backend service 9011
  • phpMyAmdin at port 80 (interpreted by Apache2 inside container)
podman create --restart=always --pod=some-pod-name --name=phpmyadmin -e PMA_ABSOLUTE_URI="" phpmyadmin/phpmyadmin:5.2.0

Debugging via tcpdump container

podman run  --restart=always -it --pod=some-pod-name --name=tcpdump --entrypoint=/bin/sh kaazing/tcpdump

Useful Nginx snippet to proxy to phpMyAmdin
server {
    listen       8091;

    location /api/ {
        proxy_pass "";

        # WebSocket support (nginx 1.4)
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
        try_files $uri $uri/ /index.html;

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;

    # phpMyAdmin section 
    location ~ ^/insight/ {
        rewrite ^/insight(/.*)$ $1 break;

author image

Jan Toth

I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …

comments powered by Disqus