docs/contributing: update paths to /usr/src/moby

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2026-02-11 17:08:25 +01:00
parent 60ff82f0fc
commit b276d5081d
2 changed files with 8 additions and 8 deletions

View File

@@ -129,7 +129,7 @@ can take over 15 minutes to complete.
```none
Successfully built 3d872560918e
docker run --rm -i --privileged -e BUILDFLAGS -e KEEPBUNDLE -e DOCKER_DEBUG -e DOCKER_EXPERIMENTAL -e DOCKER_GITCOMMIT -e DOCKER_GRAPHDRIVER=vfs -e DOCKER_REMAP_ROOT -e DOCKER_STORAGE_OPTS -e DOCKER_USERLANDPROXY -e TESTDIRS -e TESTFLAGS -e TIMEOUT -v "home/ubuntu/repos/docker/bundles:/go/src/github.com/docker/docker/bundles" -t "docker-dev" bash
docker run --rm -i --privileged -e BUILDFLAGS -e KEEPBUNDLE -e DOCKER_DEBUG ...
#
```
@@ -137,13 +137,13 @@ can take over 15 minutes to complete.
Alternatively you can use the provided devcontainer in an IDE that supports them (VSCode, Goland, etc.)
> **Note:** The `make shell` command creates an image tagged as `docker-dev:latest` by default.
> It does not automatically tag the image with your current branch name, even if you are on a feature branch.
> Some older documentation or examples may refer to a branch-specific tag, but that behavior is no longer used.
> **Note:** The `make shell` command creates an image tagged as `docker-dev:latest` by default.
> It does not automatically tag the image with your current branch name, even if you are on a feature branch.
> Some older documentation or examples may refer to a branch-specific tag, but that behavior is no longer used.
5. List the contents of the current directory (`/go/src/github.com/docker/docker`).
5. List the contents of the current directory (`/usr/src/moby`).
You should see the image's source from the `/go/src/github.com/docker/docker`
You should see the image's source from the `/usr/src/moby`
directory.
![List example](images/list_example.png)

View File

@@ -147,7 +147,7 @@ You can use the `TESTDIRS` environment variable to run unit tests for
a single package.
```bash
$ TESTDIRS='github.com/docker/docker/opts' make test-unit
$ TESTDIRS='github.com/moby/moby/v2/opts' make test-unit
```
You can also use the `TESTFLAGS` environment variable to run a single test. The
@@ -162,7 +162,7 @@ On unit tests, it's better to use `TESTFLAGS` in combination with
`TESTDIRS` to make it quicker to run a specific test.
```bash
$ TESTDIRS='github.com/docker/docker/opts' TESTFLAGS='-test.run ^TestValidateIPAddress$' make test-unit
$ TESTDIRS='github.com/moby/moby/v2/opts' TESTFLAGS='-test.run ^TestValidateIPAddress$' make test-unit
```
## Run integration tests