Skip to content

Commit 9d488a2

Browse files
authored
Install buildx for all container users (Azure#3450)
This is so that even if somebody launches the container and runs it using their user identity (matching the UID/GID of the files they've mounted into the container locally) docker will still be able to find the buildx extension.
1 parent d1322d4 commit 9d488a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.devcontainer/install-dependencies.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ if should-install "$TOOL_DEST/cmctl"; then
210210
curl -L "https://github.com/jetstack/cert-manager/releases/latest/download/cmctl-${os}-${arch}.tar.gz" | tar -xz -C "$TOOL_DEST"
211211
fi
212212

213-
BUILDX_DEST=$HOME/.docker/cli-plugins
213+
BUILDX_DEST=/usr/lib/docker/cli-plugins
214214
write-verbose "Checking for $BUILDX_DEST/docker-buildx"
215215
if should-install "$BUILDX_DEST/docker-buildx"; then
216-
write-info "Installing buildx-${os}_${arch}"
216+
write-info "Installing buildx-${os}_${arch} to $BUILDX_DEST"
217217
mkdir -p "$BUILDX_DEST"
218218
curl -o "$BUILDX_DEST/docker-buildx" -L "https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.${os}-${arch}"
219219
chmod +x "$BUILDX_DEST/docker-buildx"

0 commit comments

Comments
 (0)