Merge pull request #566 from netroby/pr/add-introduce-docker
Document add: how to using docker with tidb
This commit is contained in:
18
README.md
18
README.md
@ -35,6 +35,24 @@ Read the [Roadmap](./ROADMAP.md).
|
||||
|
||||
## Quick start
|
||||
|
||||
|
||||
#### Run tidb with docker
|
||||
|
||||
You can quickly test tidb with docker, the source repository contains Dockerfile,
|
||||
You can build docker and then run a docker container with tidb.
|
||||
To install docker on your system, you can read the document on https://docs.docker.com/
|
||||
|
||||
|
||||
```
|
||||
git clone https://github.com/pingcap/tidb.git
|
||||
cd tidb
|
||||
docker build --rm -t tidb-server .
|
||||
docker images
|
||||
docker run -d -p 4000:4000 --name tidb-server tidb-server
|
||||
```
|
||||
Then you can connect 127.0.0.1:4000 by mysql client or telnet.
|
||||
The tidb is ready for serving.
|
||||
|
||||
#### __Pre-requirement__
|
||||
|
||||
Go environment. Currently a 64-bit version of go >= 1.5 is required.
|
||||
|
||||
Reference in New Issue
Block a user