Skip to content

Commit a3d3592

Browse files
authored
Merge pull request MichaelCade#513 from saurabh10041998/minor-documentation-correction
2 parents 8b1850f + e7c3531 commit a3d3592

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

2024/day23.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
To get the IP address of a Docker container, you can use the `docker inspect` command followed by the container ID or name. Here's an example:
55

66
```bash
7-
docker inspect <container_id_or_name> -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}'
7+
docker inspect <container_id_or_name> -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}'
88
```
99

1010
Replace `<container_id_or_name>` with the ID or name of your container. This command will return the IP address associated with the container in the default bridge network.
1111

1212
In your case, you can use:
1313

1414
```bash
15-
docker inspect es2 latest -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}'
15+
docker inspect es2 latest -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}'
1616
```
1717

1818
And for the other container:
1919

2020
```bash
21-
docker inspect s latest -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}'
21+
docker inspect s latest -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}'
2222
```
2323

2424
Regarding your question about using Kubernetes or Windows Server Cluster, it's a matter of preference and use case. Both have their pros and cons. Kubernetes is more flexible and can be used with various operating systems, but it might require more effort to set up and manage. On the other hand, Windows Server Cluster is easier to set up and manage but is limited to Windows OS. You should choose the one that best fits your needs and resources.

0 commit comments

Comments
 (0)