Created
March 22, 2017 18:22
-
-
Save Shawyeok/90737876ecef7aa47b598a7854a8a674 to your computer and use it in GitHub Desktop.
Test docker compose network, only link without ports/expose.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.0' | |
services: | |
client: | |
image: busybox | |
command: [sh, -c, 'echo ping | nc server 1234'] | |
links: | |
- server | |
server: | |
image: busybox | |
command: [nc, -l, -p, '1234'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The command output: