Docker

Using OVH S3 Object Storage on Discourse that using Docker in Centos 7

Using OVH S3 Object Storage on Discourse Deployed with Docker in CentOS 7 In this tutorial, we will guide you on how to effectively use OVH’s S3 Object Storage with Discourse deployed on Docker in CentOS 7. Using cloud-based storage, like OVH S3, is an effective way of managing, storing, and retrieving your Discourse data. It’s also a highly secure and scalable solution, making it suitable for applications of all sizes. Setting Up OVH S3 Object Storage First, you’ll need to create a container in[…]

Using OVH S3 Object Storage on Discourse that using Docker in Centos 7 Read More »

How to export mysql or mariadb data from docker

List running dockers that running with mysql or mariadb juzhax@Justins-MacBook-Air ~ % docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7e49a319857c mariadb “docker-entrypoint.s…” 24 hours ago Up 21 minutes 0.0.0.0:54482->3306/tcp wp-env-mysql-1 Access CLI to mariadb container docker exec -it 7e49a319857c /bin/bash Dump data using mysqldump mysqldump -uroot -p wordpress > /tmp/wordpress.sql Then exit the CLI. Copy the data from docker out docker cp 7e49a319857c:/tmp/wordpr[…]

How to export mysql or mariadb data from docker Read More »

How to modify docker php.ini without installing editor

Editor Not found Recently I would like edit the php.ini in Bitnami WordPress Docker using CLI, but inside the docker doesn’t contain any editor and apt-get is not allowed me to install any editor. $ vim /bin/sh: 1: vim: not found $ vi /bin/sh: 2: vi: not found $ nano /bin/sh: 3: nano: not found $ Modify the upload limit for PHP I want to upload a file more than 800M, I’ve to apply these to php.ini upload_max_filesize 1000M post_max_size 1000M memory_limit 1000M max_execution_time 0 max_input_tim[…]

How to modify docker php.ini without installing editor Read More »

WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Installing Recently I install the Bitnami WordPress for Docker on Apple MacOS with M1 Chip. I followed the documentation from the official Bitnami Wordpress Example console command docker run -d –name wordpress \ -p 8080:8080 -p 8443:8443 \ –env ALLOW_EMPTY_PASSWORD=yes \ –env WORDPRESS_DATABASE_USER=bn_wordpress \ –env WORDPRESS_DATABASE_PASSWORD=bitnami \ –env WORDPRESS_DATABASE_NAME=bitnami_wordpress \ –network wordpress-network \ –volume wordpress_data:/bitnami/wordpress \ bitnami/wor[…]

WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested Read More »

Installing PHP Extension in WP ENV

I need pdo_mysql php extension to use on my Wordpress plugins. After a day of research, I found out that this is the limitation of wp-env. The developers do not want us to touch more to any setting of PHP and Docker. So we have to manually install everytime after wp-env start. You can use this way to install other php extensions. Install pdo_mysql after WP-ENV started. wp-env start docker ps docker exec -it [WORDPRESS_CONTAINER_ID] docker-php-ext-install pdo_mysql docker exec -it [WORDPRESS_CONT[…]

Installing PHP Extension in WP ENV Read More »

ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction)

I’m trying to insert new row by using the import function from discourse, create_categories. It throw me this error. What cause this error appear ? I’m using this way to restore the docker data for keep testing on importing Full error message from console Solution In many cases, it should be corrupted in PostgreSQL database,

ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction) Read More »