Skip to content

Commit e24d692

Browse files
committed
English fixes
1 parent 448eb9e commit e24d692

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Automatic update `/etc/hosts` on start/stop containers by labels.
55
Requirements
66
-----
77
* **Native linux**
8-
_This tool has no effect on macOS or windows, because docker on this OS running in
8+
_This tool has no effect on macOS or windows, because docker on these OS running in
99
VM and you can't directly access from host to each container via ip._
1010

1111
Usage
@@ -30,7 +30,7 @@ Try to ping from host
3030

3131
Multiple Hosts
3232
-----
33-
You can add multiple hosts, just separate it by semicolon:
33+
You can add multiple hosts, just separate them by semicolon:
3434

3535
```bash
3636
$ docker run --label ru.grachevko.dhu="nginx.local;nginx.ru" nginx
@@ -40,7 +40,7 @@ $ ping nginx.ru
4040

4141
Subdomains
4242
-----
43-
Add subdomains by used pattern `{www,api}.nginx.local`:
43+
Add subdomains by using pattern `{www,api}.nginx.local`:
4444

4545
```bash
4646
$ docker run -d --label ru.grachevko.dhu="{www,api}.nginx.local" nginx
@@ -51,26 +51,26 @@ $ ping api.nginx.local
5151

5252
Priority
5353
----
54-
If you want to run two containers with same hosts and want that one will override another,
54+
If you want to run two containers with same hosts and want one override another,
5555
just add priority after colon:
5656

5757
```bash
5858
$ docker run -d --label ru.grachevko.dhu="nginx.local" nginx
5959
$ docker run -d --label ru.grachevko.dhu="nginx.local:10" nginx
6060
$ ping nginx.local
6161
```
62-
Container with greater priority will be used, by default priority is 0.
63-
If priority are the same then early created container will be used.
62+
Container with greater priority will be used. Default priority 0.
63+
If priority is the same then early created container will be used.
6464

6565
Load Balancer
6666
----
67-
In order to pass traffic through loadbalancer you can define container name which ip will be used to record in hosts.
68-
Just add one more colon and container name after.
67+
To pass the traffic through the loadbalancer you should define container's name in order to use it's ip for recording in hosts.
68+
Just add one more colon and container name after it.
6969
```bash
7070
$ docker run -d --name lb nginx
7171
$ docker run -d --label ru.grachevko.dhu="nginx1.local:0:lb" nginx
7272
$ docker run -d --label ru.grachevko.dhu="nginx2.local:0:lb" nginx
7373
$ ping nginx1.local // ip of lb
7474
$ ping nginx2.local // ip of lb
7575
```
76-
Keep in mind, loadbalancer container must have fixed name.
76+
Keep in mind, loadbalancer container must have fixed name.

0 commit comments

Comments
 (0)