Skip to content

Commit 9f8fae0

Browse files
committed
Merge pull request #42078 from martinfrancois
* pr/42078: Improve formatting for Docker configuration example with Colima Closes gh-42078
2 parents b29bc2d + fd9d907 commit 9f8fae0

File tree

2 files changed

+12
-2
lines changed
  • spring-boot-project/spring-boot-tools

2 files changed

+12
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/antora/modules/gradle-plugin/pages/packaging-oci-image.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,12 @@ TIP: With the `podman` CLI installed, the command `podman info --format='{{.Host
602602
==== Docker Configuration for Colima
603603

604604
The plugin can communicate with the Docker daemon provided by https://github.com/abiosoft/colima[Colima].
605-
The `DOCKER_HOST` environment variable can be set by using the command `export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}').`
605+
The `DOCKER_HOST` environment variable can be set by using the following command:
606+
607+
[source,shell,subs="verbatim,attributes"]
608+
----
609+
$ export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}')
610+
----
606611

607612
The plugin can also be configured to use Colima daemon by providing connection details similar to those shown in the following example:
608613

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/antora/modules/maven-plugin/pages/build-image.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,12 @@ TIP: With the `colima` CLI installed, the command `podman info --format='{{.Host
511511
==== Docker Configuration for Colima
512512

513513
The plugin can communicate with the Docker daemon provided by https://github.com/abiosoft/colima[Colima].
514-
The `DOCKER_HOST` environment variable can be set by using the command `export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}').`
514+
The `DOCKER_HOST` environment variable can be set by using the following command:
515+
516+
[source,shell,subs="verbatim,attributes"]
517+
----
518+
$ export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}')
519+
----
515520

516521
The plugin can also be configured to use Colima daemon by providing connection details similar to those shown in the following example:
517522

0 commit comments

Comments
 (0)