added explanation of -dit further up (#5954)

The explanation of dit in the "Communicate between a container and a swarm service" was helpful but wasn't written in an earlier walk through on the same page. I just simply added it to the "Use an overlay network for standalone containers" walkthrough so that people come across it in case they only see this one walkthrough.
This commit is contained in:
Tanner Chung 2018-02-08 14:36:15 -05:00 committed by Misty Stanley-Jones
parent 9d908e7653
commit a2122dc955
1 changed files with 4 additions and 1 deletions

View File

@ -379,7 +379,10 @@ The example uses Linux hosts, but the same commands work on Windows.
--network test-net \
alpine
```
The `-dit` flags mean to start the container detached
(in the background), interactive (with the ability to type into it), and
with a TTY (so you can see the input and output).
> **Note**: There is nothing to prevent you from using the same container
> name on multiple hosts, but automatic service discovery will not work if
> you do, and you will need to refer to the containers by IP address.