Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Create container
$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=1234 -e ON_CREATE_DB="proyecto" -p 3306:3306 -d proyectomicroservices2016/mysql:latest
$ docker exec -ti mysql sh /tmp/init_db.sh

Start container
$ docker start mysql

Stop container
$ docker stop mysql

Enter container
$ docker exec -ti mysql bash

Dockerfile

FROM mysql:latest
ADD init_db.sh /tmp/init_db.sh
ADD dump.sql /tmp/dump.sql

Docker Pull Command
Owner
proyectomicroservices2016

Comments (0)