Replies: 1 comment 2 replies
-
|
I would indeed put them into a pod but there are lots of variations you might consider here, some of which would depend on running privileged or unprivilged. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I'm new to Podman and I'm trying to create Wordpress and Mysql containers on my host (OpenSUSE Leap 15.6) which also acts as a firewall.
I've created a Mac-vlan network:
#podman network create Mind-macvlan --driver macvlan --subnet 192.168.1.0/24 --gateway 192.168.1.1 --opt parent=eth2 --internal
Then I tried to start two containers (below):
#podman run -d --name mysql --network Mind-macvlan --ip 192.168.1.10 -e MYSQL_ROOT_PASSWORD=notthisone -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wpuser -e MYSQL_PASSWORD=lego10land! docker.io/library/mysql:8
#podman run -d --name wordpress --network Mind-macvlan --ip 192.168.1.20 -e WORDPRESS_DB_HOST=192.168.1.10 -e WORDPRESS_DB_NAME=wordpress -e WORDPRESS_DB_USER=wpuser -e WORDPRESS_DB_PASSWORD=notthisone docker.io/library/wordpress:latest
The two containers start up fine (se below) but I'm not able to reach my Wordpress machine on 192.168.1.20/wp-admin:
b9a6cba13157 docker.io/library/mysql:8 mysqld 7 minutes ago Up 7 minutes mysql
e78c15afcab9 docker.io/library/wordpress:latest apache2-foregroun... 7 minutes ago Up 7 minutes wordpress
I also added a route to the 192.168.1.0 network;
ip route add 192.168.1.0/24 via 10.0.46.1
Any ideas on what I'm missing?
Should I perhaps place the containers in a Pod that's connected to Mind-macvlan?
Kind regards
Henrik
Beta Was this translation helpful? Give feedback.
All reactions