From 815b54c5aaa551b67edbcb40dbb7908c8f852671 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Wed, 25 Oct 2023 12:28:49 +0200 Subject: [PATCH] docs: local-development (#25394) Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Rhys Arkins <rhys@arkins.net> --- docs/development/local-development.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/development/local-development.md b/docs/development/local-development.md index c9874fbcde..9dadbf02a6 100644 --- a/docs/development/local-development.md +++ b/docs/development/local-development.md @@ -75,10 +75,17 @@ To build the correct docker image: docker build -f .devcontainer/Dockerfile -t renovatebot_local . ``` +Starting from Docker Engine 23.0 and Docker Desktop 4.19, Docker uses Buildx by default. +So you must run the following command to get the image loaded to the Docker image store: + +``` +docker build -f .devcontainer/Dockerfile -t renovatebot_local --load . +``` + Then you can run `pnpm` directly from Docker, for instance: ``` -docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app renovatebot_local pnpm install +docker run -it --rm -v "${PWD}:/usr/src/app" -w /usr/src/app renovatebot_local pnpm install ``` ## Fork and Clone -- GitLab