Public Repository

Last pushed: a year ago
Short Description
MySql Server Running on Ubuntu.
Full Description

V1: root user password is 'admin@123'

V2: Password has not been set for root user, so user have to run mysqladmin command to set the password. "mysqladmin -u root password 'your_password' "

Dockerfile:

FROM ubuntu:latest

MAINTAINER sumitsaiwal@gmail.com

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server && rm -rf /var/lib/apt/lists/*

WORKDIR /etc/mysql
RUN sed -i "s/127.0.0.1/0.0.0.0/g" my.cnf

#RUN /etc/init.d/mysql restart && mysqladmin -u root password admin@123

ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

EXPOSE 3306

#ENTRYPOINT /entrypoint.sh
CMD ["mysqld"]


entrypoint.sh:

/etc/init.d/mysql start

Docker Pull Command
Owner
sumitsaiwal

Comments (0)