Sign inSign up

sumitsaiwal/mysql

By sumitsaiwal

Updated about 10 years ago

MySql Server Running on Ubuntu.

Image
0

198

sumitsaiwal/mysql repository overview

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 [email protected]

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

Tag summary

Content type

Image

Digest

Size

124.7 MB

Last updated

about 10 years ago

docker pull sumitsaiwal/mysql:v2