Merge pull request #20425 from HackToday/fixindex
Fix wrong index marking
This commit is contained in:
commit
a9c73b1a7e
1 changed files with 5 additions and 5 deletions
|
@ -275,12 +275,12 @@ image that you just pulled, make a change to it, and build a new image based on
|
|||
command.
|
||||
|
||||
1. In an empty directory, create a simple `Dockerfile` that starts with the
|
||||
2. ubuntu:15.04 image.
|
||||
ubuntu:15.04 image.
|
||||
|
||||
FROM ubuntu:15.04
|
||||
|
||||
2. Add a new file called "newfile" in the image's `/tmp` directory with the
|
||||
3. text "Hello world" in it.
|
||||
text "Hello world" in it.
|
||||
|
||||
When you are done, the `Dockerfile` contains two lines:
|
||||
|
||||
|
@ -291,7 +291,7 @@ command.
|
|||
3. Save and close the file.
|
||||
|
||||
4. From a terminal in the same folder as your `Dockerfile`, run the following
|
||||
5. command:
|
||||
command:
|
||||
|
||||
$ docker build -t changed-ubuntu .
|
||||
Sending build context to Docker daemon 2.048 kB
|
||||
|
@ -310,14 +310,14 @@ command.
|
|||
The output above shows a new image with image ID `94e6b7d2c720`.
|
||||
|
||||
5. Run the `docker images` command to verify the new `changed-ubuntu` image is
|
||||
6. in the Docker host's local storage area.
|
||||
in the Docker host's local storage area.
|
||||
|
||||
REPOSITORY TAG IMAGE ID CREATED SIZE
|
||||
changed-ubuntu latest 03b964f68d06 33 seconds ago 131.4 MB
|
||||
ubuntu 15.04 013f3d01d247 6 weeks ago 131.3 MB
|
||||
|
||||
6. Run the `docker history` command to see which image layers were used to
|
||||
7. create the new `changed-ubuntu` image.
|
||||
create the new `changed-ubuntu` image.
|
||||
|
||||
$ docker history changed-ubuntu
|
||||
IMAGE CREATED CREATED BY SIZE COMMENT
|
||||
|
|
Loading…
Reference in a new issue