How to build own Docker image with PXC 8.0 without root password promting?

Hi, I try to build own Docker image for us, but how I can install PXC 8.0 in my docker image without promt a root password?

I find a something relative question a lot of year ago about 5.7, but now, in Debian-11:slim image it’s not work for me

Hi Aleks,

Here is our Dockerfile that is used for building PXC images.
https://github.com/percona/percona-docker/raw/main/percona-xtradb-cluster-8.0/Dockerfile

Thanks! But some other question, sorry - if I use official docker image (Docker) - how I can mount an own my.cnf file for use? Because, I try to create own image for resolve this moment

Resolves for me, how to install in docker:

RUN apt-get update && apt-get install -y debconf-utils

RUN apt update && echo “percona-xtradb-cluster-server percona-xtradb-cluster-server/root_password password root” | debconf-set-selections
&& echo “percona-xtradb-cluster-server percona-xtradb-cluster-server/root_password_again password root” | debconf-set-selections

ARG DEBIAN_FRONTEND=noninteractive