Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit c3831ce

Browse files
AbretothaJeztah
authored andcommitted
Remove a useless '\' and enhance a script in an example in the section 'Add entries ... (--add-host)'
Signed-off-by: Abreto FU <public@abreto.email> (cherry picked from commit 07436dfe78e293507adfbf82ffea1ad6e6605c34) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 2d6231ad4d33d6b70c39c2b4b7ecc005599c0d80 Component: cli
1 parent d9eb3c2 commit c3831ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • components/cli/docs/reference/commandline

components/cli/docs/reference/commandline/run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ using IPv4 or IPv6 networking in your containers. Use the following
689689
flags for IPv4 address retrieval for a network device named `eth0`:
690690

691691
```bash
692-
$ HOSTIP=`ip -4 addr show scope global dev eth0 | grep inet | awk '{print \$2}' | cut -d / -f 1`
692+
$ HOSTIP=`ip -4 addr show scope global dev eth0 | grep inet | awk '{print $2}' | cut -d / -f 1 | sed -n 1p`
693693
$ docker run --add-host=docker:${HOSTIP} --rm -it debian
694694
```
695695

0 commit comments

Comments
 (0)