You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
# ALPINE_VERSION sets the Alpine Linux version for all Alpine stages
5
5
ARG ALPINE_VERSION=3.20
6
6
# GO_VERSION sets the Go version for the base stage
7
-
ARG GO_VERSION=1.22
7
+
ARG GO_VERSION=1.23
8
8
# HTML_TEST_VERSION sets the wjdp/htmltest version for HTML testing
9
9
ARG HTMLTEST_VERSION=0.17.0
10
10
@@ -21,7 +21,7 @@ RUN npm install
21
21
22
22
# hugo downloads and extracts the Hugo binary
23
23
FROM base AS hugo
24
-
ARG HUGO_VERSION=0.132.0
24
+
ARG HUGO_VERSION=0.134.3
25
25
ARG TARGETARCH
26
26
WORKDIR /tmp/hugo
27
27
RUN wget -O "hugo.tar.gz""https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
@@ -45,7 +45,7 @@ ARG DOCS_URL
45
45
RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
46
46
47
47
# lint lints markdown files
48
-
FROM davidanson/markdownlint-cli2:v0.13.0 AS lint
48
+
FROM davidanson/markdownlint-cli2:v0.14.0 AS lint
49
49
USER root
50
50
RUN --mount=type=bind,target=. \
51
51
/usr/local/bin/markdownlint-cli2 \
@@ -123,7 +123,7 @@ EOT
123
123
124
124
# pagefind installs the Pagefind runtime
125
125
FROM base AS pagefind
126
-
ARG PAGEFIND_VERSION=1.1.0
126
+
ARG PAGEFIND_VERSION=1.1.1
127
127
COPY --from=build /out ./public
128
128
RUN --mount=type=bind,src=pagefind.yml,target=pagefind.yml \
@@ -141,7 +139,7 @@ In this hands-on guide, you'll unlock the power of multi-stage builds to create
141
139
}
142
140
```
143
141
144
-
The `SpringbootDockerApplication.java` file starts by declaring your `com.example.springbootdocker` package and importing necessary Spring frameworks. This Java file creates a simple Spring Boot web application that responds with "Hello World" when a user visits its homepage.
142
+
The `SpringbootDockerApplication.java` file starts by declaring your `com.example.spring_boot_docker` package and importing necessary Spring frameworks. This Java file creates a simple Spring Boot web application that responds with "Hello World" when a user visits its homepage.
145
143
146
144
147
145
### Create the Dockerfile
@@ -238,20 +236,21 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
238
236
You'll then see output similar to the following in the container log:
### Why isn't the `docker-users` group populated when the MSI is installed with Intune or another MDM solution?
47
+
48
+
It's common for MDM solutions to install applications in the context of the system account. This means that the `docker-users` group isn't populated with the user's account, as the system account doesn't have access to the user's context.
49
+
50
+
As an example, you can reproduce this by running the installer with `psexec` in an elevated command prompt:
51
+
52
+
```powershell
53
+
psexec -i -s msiexec /i "DockerDesktop.msi"
54
+
```
55
+
The installation should complete successfully, but the `docker-users` group won't be populated.
56
+
57
+
As a workaround, you can create a script that runs in the context of the user account.
58
+
59
+
The script would be responsible for creating the `docker-users` group and populating it with the correct user.
60
+
61
+
Here's an example script that creates the `docker-users` group and adds the current user to it (requirements may vary depending on environment):
0 commit comments