diff --git a/docs/contributing/set-up-dev-env.md b/docs/contributing/set-up-dev-env.md index 6560ac742c..d3c5e57d1c 100644 --- a/docs/contributing/set-up-dev-env.md +++ b/docs/contributing/set-up-dev-env.md @@ -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) diff --git a/docs/contributing/test.md b/docs/contributing/test.md index b641c5a183..fc268afd4c 100644 --- a/docs/contributing/test.md +++ b/docs/contributing/test.md @@ -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