[root@localhost ~]# docker network ls NETWORK ID NAME DRIVER SCOPE 04f2eb0d05b9 bridge bridge local 9697f77248e1 host host local c5e99afee05d mynet bridge local abc08bbf4c8b none null local
[root@localhost ~]# docker exec -it nginx_c_b4 curl nginx_c_b5 <!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title> <style> html { color-scheme: light dark; } body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>Welcome to nginx!</h1> <p>If you see this page, the nginx web server is successfully installed and working. Further configuration is required.</p>
<p>For online documentation and support please refer to <a href="http://nginx.org/">nginx.org</a>.<br/> Commercial support is available at <a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p> </body> </html>