瀏覽代碼

Merge pull request #35892 from javabrett/dockerfile-on-docker-build-comments

Updated docker-on-docker build-notes.
Brian Goff 7 年之前
父節點
當前提交
62c433cd92
共有 1 個文件被更改,包括 15 次插入6 次删除
  1. 15 6
      Dockerfile

+ 15 - 6
Dockerfile

@@ -2,14 +2,23 @@
 #
 #
 # Usage:
 # Usage:
 #
 #
-# # Assemble the full dev environment. This is slow the first time.
-# docker build -t docker .
+# # Use make to build a development environment image and run it in a container.
+# # This is slow the first time.
+# make BIND_DIR=. shell
 #
 #
-# # Mount your source in an interactive container for quick testing:
-# docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash
+# The following commands are executed inside the running container.
+
+# # Make a dockerd binary.
+# # hack/make.sh binary
+#
+# # Install dockerd to /usr/local/bin
+# # make install
+#
+# # Run unit tests
+# # hack/test/unit
 #
 #
-# # Run the test suite:
-# docker run -e DOCKER_GITCOMMIT=foo --privileged docker hack/make.sh test-unit test-integration test-docker-py
+# # Run tests e.g. integration, py
+# # hack/make.sh binary test-integration test-docker-py
 #
 #
 # # Publish a release:
 # # Publish a release:
 # docker run --privileged \
 # docker run --privileged \