Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在服务器(ip:192.168.1.8)上的docker容器(ip:172.17.42.1)中有一个应用程序,mysql数据库在另一台服务器(ip:192.108.1.19)上。
您可以使用以下命令连接到其他 docker 容器:
docker run -d -p [port:[port_no]--link [db_container] \ -e DATABASE_URL=[web_address / ip] \ [image_name]