Skip to content

id2s/docker-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-mysql license Docker Automated buil

Docker image for MySQL (5.1) database based on official MySQL image

Installation

  • Install Docker
  • Run docker commnad to get an image: docker pull id2s/docker-mysql:5.1
  • Validate image successfully downloaded: docker images

Run

Start a mysql server instance:

# General form
$ $ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]

# Example
$ docker run -d --name mysql-5.1 -p 3307:3306 -e MYSQL_ROOT_PASSWORD=[password] id2s/docker-mysql:5.1

Other commands:

# Kill the container
docker kill [container-id]

# Shell script/shell access
$ docker exec -it mysql-5.1 bash

# Viewing MySQL logs
$ docker logs mysql-5.1

# Start exisitng container (often: after Docker Engine update)
docker start [CONTAINER ID]

About

Dockerfile for some old projects still using MySQL < 5.5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages