mysql : amend readme
This commit is contained in:
parent
8bf90b2c9f
commit
e682a3efde
|
@ -51,14 +51,14 @@ locally (on host) you can run (with appropriate user : pass) :
|
||||||
```
|
```
|
||||||
mysql -h ipmysqlcontainer -udev -pmysql
|
mysql -h ipmysqlcontainer -udev -pmysql
|
||||||
```
|
```
|
||||||
or if you want use mysql client of the container :
|
or if you want use the mysql client of the container :
|
||||||
```
|
```
|
||||||
docker exec -it mysql "mysql -h ipmysqlcontainer -udev -pmysql"
|
docker exec -it mysql "mysql -h ipmysqlcontainer -udev -pmysql"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Link container
|
## Link container
|
||||||
|
|
||||||
to link this container to another, use the default docker behaviore :
|
to link this container to another, use the default docker behavior :
|
||||||
```
|
```
|
||||||
docker run --name mycontainer --link mysql:db ...
|
docker run --name mycontainer --link mysql:db ...
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user