You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a pod on my OpenSUSE Leap 15.6 machine that also serves as a firewall.
The pod is going to host 2 containers, Wordpress & Mysql.
I've had no problems creating the pod and it's containers. I can't however get the networking to work so where have I gone wrong?
If I issue 'ip route' on my machine it looks like this:
192.168.100.0/24 via 10.0.46.1 dev eth2 (10.0.46 is my trusted (internal) network)
The host only has 2 interfaces:
External: p4p1
Trusted: eth2
Maybe someone has a pod & network configuration that I can tweek to match my environment?
Kind regards!
Henrik
How it looks:
#podman network ls
NETWORK ID NAME DRIVER
92fa8b00bdd4 mind-macvlan macvlan
#podman pod ps
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
b0c5acce1e5e Mind-pod Running 27 minutes ago 0236700513dc 3
#podman container ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0236700513dc localhost/podman-pause:4.9.5-1755086400 28 minutes ago Up 27 minutes b0c5acce1e5e-infra
dbbed193170c docker.io/library/mariadb:latest mariadbd 27 minutes ago Up 27 minutes mysql
451b088c95ef docker.io/library/wordpress:latest apache2-foregroun... 27 minutes ago Up 27 minutes wordpress
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I'm trying to create a pod on my OpenSUSE Leap 15.6 machine that also serves as a firewall.
The pod is going to host 2 containers, Wordpress & Mysql.
I've had no problems creating the pod and it's containers. I can't however get the networking to work so where have I gone wrong?
Below you'll find the commands I've given:
#podman network create --driver macvlan --subnet 192.168.100.0/24 --gateway 192.168.100.1 --ip-range 192.168.100.200/29 --interface-name eth2 mind-macvlan
#podman pod create --name Mind-pod --network mind-macvlan --network-alias Mind
#podman run -d --name mysql --pod Mind-pod -e MYSQL_ROOT_PASSWORD=lego10land! -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wpuser -e MYSQL_PASSWORD=***** docker.io/library/mariadb:latest
#podman run -d --name wordpress --pod Mind-pod -e WORDPRESS_DB_HOST=127.0.0.1:3306 -e WORDPRESS_DB_USER=wpuser -e WORDPRESS_DB_PASSWORD=****** -e WORDPRESS_DB_NAME=wordpress docker.io/library/wordpress:latest
If I issue 'ip route' on my machine it looks like this:
192.168.100.0/24 via 10.0.46.1 dev eth2 (10.0.46 is my trusted (internal) network)
The host only has 2 interfaces:
External: p4p1
Trusted: eth2
Maybe someone has a pod & network configuration that I can tweek to match my environment?
Kind regards!
Henrik
How it looks:
#podman network ls
NETWORK ID NAME DRIVER
92fa8b00bdd4 mind-macvlan macvlan
#podman pod ps
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
b0c5acce1e5e Mind-pod Running 27 minutes ago 0236700513dc 3
#podman container ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0236700513dc localhost/podman-pause:4.9.5-1755086400 28 minutes ago Up 27 minutes b0c5acce1e5e-infra
dbbed193170c docker.io/library/mariadb:latest mariadbd 27 minutes ago Up 27 minutes mysql
451b088c95ef docker.io/library/wordpress:latest apache2-foregroun... 27 minutes ago Up 27 minutes wordpress
Beta Was this translation helpful? Give feedback.
All reactions