I'm trying to perform few installations in the Mariadb image and then start the mysql service.
This is my Dockerfile
FROM mariadb
COPY . /usr/src/app
WORKDIR /usr/src/app
# I will be performing a phpmyadmin installation in this script
RUN setup.sh
CMD service mysql start && service apache2 start
The container waits for about 20 seconds for mysql service to start and it eventually exits.
This is the only log message I have
Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
When I manually exec into the container within 20 seconds and perform a service mysql status
, this is the output I have
[info] MariaDB is stopped..