docker
This is an old revision of the document!
Table of Contents
Docker and OpenSimulator
Docker one mysql instance
Run the container
docker run --detach --name=test-mysql --env="MYSQL_ROOT_PASSWORD=mypassword" mysql
Get container ip
This is optionnal but noted as reference.
docker inspect test-mysql | grep IPAddress
Run client
docker run --detach --name test-debian --link test-mysql:mysql debian
Enter client
docker exec -it test-debian bashSee that the ip is mapped in /etc/hosts.
Expose to the outside
docker run --detach --name=test-mysql --env="MYSQL_ROOT_PASSWORD=mypassword" --publish 6603:3306 mysqlThe mysql server will be accessible from the outside on the port 6603.
docker.1488966431.txt.gz · Last modified: (external edit)
