Browse code

add example for docker history

Sven Dowideit authored on 2013/11/16 19:36:33
Showing 1 changed files
... ...
@@ -323,6 +323,40 @@ Show events in the past from a specified time
323 323
       -notrunc=false: Don't truncate output
324 324
       -q=false: only show numeric IDs
325 325
 
326
+To see how the docker:latest image was built:
327
+
328
+.. code-block:: bash
329
+
330
+	$ docker history docker
331
+	ID                  CREATED             CREATED BY
332
+	docker:latest       19 hours ago        /bin/sh -c #(nop) ADD . in /go/src/github.com/dotcloud/docker
333
+	cf5f2467662d        2 weeks ago         /bin/sh -c #(nop) ENTRYPOINT ["hack/dind"]
334
+	3538fbe372bf        2 weeks ago         /bin/sh -c #(nop) WORKDIR /go/src/github.com/dotcloud/docker
335
+	7450f65072e5        2 weeks ago         /bin/sh -c #(nop) VOLUME /var/lib/docker
336
+	b79d62b97328        2 weeks ago         /bin/sh -c apt-get install -y -q lxc
337
+	36714852a550        2 weeks ago         /bin/sh -c apt-get install -y -q iptables
338
+	8c4c706df1d6        2 weeks ago         /bin/sh -c /bin/echo -e '[default]\naccess_key=$AWS_ACCESS_KEY\nsecret_key=$AWS_SECRET_KEYn' > /.s3cfg
339
+	b89989433c48        2 weeks ago         /bin/sh -c pip install python-magic
340
+	a23e640d85b5        2 weeks ago         /bin/sh -c pip install s3cmd
341
+	41f54fec7e79        2 weeks ago         /bin/sh -c apt-get install -y -q python-pip
342
+	d9bc04add907        2 weeks ago         /bin/sh -c apt-get install -y -q reprepro dpkg-sig
343
+	e74f4760fa70        2 weeks ago         /bin/sh -c gem install --no-rdoc --no-ri fpm
344
+	1e43224726eb        2 weeks ago         /bin/sh -c apt-get install -y -q ruby1.9.3 rubygems libffi-dev
345
+	460953ae9d7f        2 weeks ago         /bin/sh -c #(nop) ENV GOPATH=/go:/go/src/github.com/dotcloud/docker/vendor
346
+	8b63eb1d666b        2 weeks ago         /bin/sh -c #(nop) ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/goroot/bin
347
+	3087f3bcedf2        2 weeks ago         /bin/sh -c #(nop) ENV GOROOT=/goroot
348
+	635840d198e5        2 weeks ago         /bin/sh -c cd /goroot/src && ./make.bash
349
+	439f4a0592ba        2 weeks ago         /bin/sh -c curl -s https://go.googlecode.com/files/go1.1.2.src.tar.gz | tar -v -C / -xz && mv /go /goroot
350
+	13967ed36e93        2 weeks ago         /bin/sh -c #(nop) ENV CGO_ENABLED=0
351
+	bf7424458437        2 weeks ago         /bin/sh -c apt-get install -y -q build-essential
352
+	a89ec997c3bf        2 weeks ago         /bin/sh -c apt-get install -y -q mercurial
353
+	b9f165c6e749        2 weeks ago         /bin/sh -c apt-get install -y -q git
354
+	17a64374afa7        2 weeks ago         /bin/sh -c apt-get install -y -q curl
355
+	d5e85dc5b1d8        2 weeks ago         /bin/sh -c apt-get update
356
+	13e642467c11        2 weeks ago         /bin/sh -c echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list
357
+	ae6dde92a94e        2 weeks ago         /bin/sh -c #(nop) MAINTAINER Solomon Hykes <solomon@dotcloud.com>
358
+	ubuntu:12.04        6 months ago 
359
+
326 360
 .. _cli_images:
327 361
 
328 362
 ``images``