User Tools

This is an old revision of the document!


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 bash
See 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 mysql
The mysql server will be accessible from the outside on the port 6603.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information