Skip to content

Commit

Permalink
docs: remove blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Nov 28, 2023
1 parent 6fbdbe2 commit 2dc912e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/features/image_name_substitution.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ Consider this if:
In this case, image name references in code are **unchanged**.
i.e. you would leave as-is:

<!--codeinclude-->
<!--codeinclude-->
[Unchanged direct Docker Hub image name](../../container_test.go) inside_block:directDockerHubReference
<!--/codeinclude-->

You can then configure _Testcontainers for Go_ to apply a given prefix (e.g. `registry.mycompany.com/mirror`) to every image that it tries to pull from Docker Hub. Important to notice that **the prefix should not include a trailing slash**. This can be done in one of two ways:

* Setting the `TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX=registry.mycompany.com/mirror` environment variable.
* Via config file, setting `hub.image.name.prefix` in the `~/.testcontainers.properties` file in your user home directory.

_Testcontainers for Go_ will automatically apply the prefix to every image that it pulls from Docker Hub - please verify that all [the required images](#images-used-by-testcontainers) exist in your registry.

_Testcontainers for Go_ will not apply the prefix to:
Expand All @@ -59,7 +59,7 @@ Consider this if:

In this case, image name references in code are **unchanged**. i.e. you would leave as-is:

<!--codeinclude-->
<!--codeinclude-->
[Unchanged direct Docker Hub image name](../../container_test.go) inside_block:directDockerHubReference
<!--/codeinclude-->

Expand Down

0 comments on commit 2dc912e

Please sign in to comment.