why dockerfile can't start db with " CMD /etc/init.d/mysql start "? – Phpmyadmin
I downloaded a docker image with mariadb and phpmyadmin, then wrote two dockerfiles below.. # dockerfile A FROM alfvenjohn/raspbian-buster-mariadb-phpmyadmin CMD /etc/init.d/mysql start && /etc/init.d/apache2 start # dockerfile B FROM alfvenjohn/raspbian-buster-mariadb-phpmyadmin CMD service mysql start && /usr/sbin/apachectl -D FOREGROUND dockerfile B…