mysql : amend readme

This commit is contained in:
a-sansara 2016-07-28 15:28:31 +02:00
parent 8bf90b2c9f
commit e682a3efde

View File

@ -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 ...
``` ```