{"id":14568,"date":"2026-09-02T01:01:00","date_gmt":"2026-09-02T05:01:00","guid":{"rendered":"https:\/\/www.both.org\/?p=14568"},"modified":"2026-08-27T19:55:46","modified_gmt":"2026-08-27T23:55:46","slug":"setting-up-a-wordpress-blog-with-podman","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=14568","title":{"rendered":"Setting Up a WordPress Blog with Podman"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"14568\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p class=\"wp-block-paragraph\">I regularly use&nbsp;<a href=\"https:\/\/www.virtualbox.org\/\">VirtualBox<\/a>&nbsp;to test new Linux distributions, Windows versions, and sometimes set up WordPress, Moodle, or another content management system. Listening to one of my favorite Linux podcasts recently, I decided I wanted to learn more about containers, which I know dreadfully little about. I decided to use&nbsp;<a href=\"https:\/\/podman.io\/\">Podman<\/a>, although I have used Docker on Linux and macOS in the past. This time, I installed Podman on Linux Mint Cinnamon 22.3 using the software center and the Flatpak install.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"309\" src=\"https:\/\/www.both.org\/wp-content\/uploads\/2026\/08\/podman_desktop.png\" alt=\"\" class=\"wp-image-14569\" style=\"width:690px;height:auto\" srcset=\"https:\/\/www.both.org\/wp-content\/uploads\/2026\/08\/podman_desktop.png 802w, https:\/\/www.both.org\/wp-content\/uploads\/2026\/08\/podman_desktop-300x116.png 300w, https:\/\/www.both.org\/wp-content\/uploads\/2026\/08\/podman_desktop-766x295.png 766w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><figcaption class=\"wp-element-caption\">Screen picture by Don Watkins CC by SA 4.0<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Since I know very little about containers and how to create them, I used Google Gemini to provide the steps needed to build a WordPress blog.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I followed the directions provided and created two volumes. I opened the terminal and entered the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>podman volume create wp_db_data\npodman volume create wp_core_data<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, create the pod wrapper. You need to expose port&nbsp;<strong>8080<\/strong>&nbsp;on your host machine and route it to port&nbsp;<strong>80<\/strong>&nbsp;inside the pod where WordPress will be listening. The following command sequence worked.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>podman pod create --name blog-pod --publish 8080:80<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, I had to create a database inside the newly created blog.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>podman run -d --pod blog-pod \\\n  --name wp-db \\\n  -v wp_db_data:\/var\/lib\/mysql:Z \\\n  -e MYSQL_ROOT_PASSWORD=your_root_password \\\n  -e MYSQL_DATABASE=wordpress_db \\\n  -e MYSQL_USER=wp_user \\\n  -e MYSQL_PASSWORD=your_wp_password \\\n  docker.io\/library\/mariadb:latest\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After that, I created a database within the newly established blog. I ran the WordPress container in the same pod, allowing WordPress to connect to the database easily.WordPress can easily connect to the database using 127.0.0.1 or localhost<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>podman run -d --pod blog-pod \\\n  --name wp-web \\\n  -v wp_core_data:\/var\/www\/html:Z \\\n  -e WORDPRESS_DB_HOST=127.0.0.1 \\\n  -e WORDPRESS_DB_NAME=wordpress_db \\\n  -e WORDPRESS_DB_USER=wp_user \\\n  -e WORDPRESS_DB_PASSWORD=your_wp_password \\\n  docker.io\/library\/wordpress:latest<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then I opened my web browser and pointed it to&nbsp;<code>http:\/\/localhost:8080<\/code>. Then I selected the language for my newly created blog, filled in the new user, selected a strong password, and saved it. Then I logged in, added a theme, and was ready to start blogging and learning more about creating and using containers with Podman.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Diving into container technology with Podman has been a rewarding experience that has expanded my understanding of managing applications in isolated environments. By successfully setting up a WordPress blog, I\u2019ve gained valuable insights into the practicality and efficiency of containers. This journey not only enhanced my technical skills but also sparked my curiosity to explore further possibilities within the container ecosystem.Categories<a href=\"https:\/\/donwatkins.info\/category\/blogging\/\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I regularly use&nbsp;VirtualBox&nbsp;to test new Linux distributions, Windows versions, and sometimes set up WordPress, Moodle, or another content<\/p>\n","protected":false},"author":32,"featured_media":14572,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[5],"tags":[],"class_list":["post-14568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14568"}],"version-history":[{"count":3,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14568\/revisions"}],"predecessor-version":[{"id":14574,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14568\/revisions\/14574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/14572"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}