From bd44be5fbd7cab1853855bb6ea1ddb163319cdd8 Mon Sep 17 00:00:00 2001 From: pmcgrath Date: Mon, 20 Oct 2014 21:21:40 +0100 Subject: [PATCH] Revert "Restored the CMD instruction to the Dockerfile and removed the CMD instruction explanation, this is a bit of a simplification but is a simplier explanation for a newbie" This reverts commit 9e53ea71fa9e6f0a71a72530df8bb7c5f17515c2. --- golang/README.md | 4 +++- golang/content.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/golang/README.md b/golang/README.md index b46170d68..6ec0068f4 100644 --- a/golang/README.md +++ b/golang/README.md @@ -35,12 +35,14 @@ the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project: FROM golang:1.3.1-onbuild - CMD ["app"] This image includes multiple `ONBUILD` triggers which should cover most applications. The build will `COPY . /usr/src/app`, `RUN go get -d -v`, and `RUN go install -v`. +This image also includes the `CMD ["app"]` instruction which is the default command +when running the image. + You can then build and run the Docker image: docker build -t my-golang-app . diff --git a/golang/content.md b/golang/content.md index 2932507ed..7e2383ae3 100644 --- a/golang/content.md +++ b/golang/content.md @@ -19,12 +19,14 @@ the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project: FROM golang:1.3.1-onbuild - CMD ["app"] This image includes multiple `ONBUILD` triggers which should cover most applications. The build will `COPY . /usr/src/app`, `RUN go get -d -v`, and `RUN go install -v`. +This image also includes the `CMD ["app"]` instruction which is the default command +when running the image. + You can then build and run the Docker image: docker build -t my-golang-app .