github.com/toophy/docker@v1.8.2/docs/userguide/level1.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "Docker images test"
     4  description = "How to work with Docker images."
     5  keywords = ["documentation, docs, the docker guide, docker guide, docker, docker platform, virtualization framework, docker.io, Docker images, Docker image, image management, Docker repos, Docker repositories, docker, docker tag, docker tags, Docker Hub,  collaboration"]
     6  +++
     7  <![end-metadata]-->
     8  
     9  <a title="back" class="dockerfile back" href="/userguide/dockerimages/#creating-our-own-images">Back</a>
    10  
    11  # Dockerfile tutorial
    12  
    13  ## Test your Dockerfile knowledge - Level 1
    14  
    15  ### Questions
    16  
    17  <div name="level1_questions">
    18  	What is the Dockerfile instruction to specify the base image ?<br />
    19  	<input type="text" class="level" id="level1_q0"/>
    20  	<div class="alert alert-error level_error" id="level1_error0" style="display:none;">The right answer was <code>FROM</code></div>
    21  	<br>
    22  	What is the Dockerfile instruction to execute any commands on the current image and commit the results?<br />
    23  	<input type="text" class="level" id="level1_q1"/>
    24  	<div class="alert alert-error level_error" id="level1_error1" style="display:none;">The right answer was <code>RUN</code></div>
    25  	<br>
    26  	What is the Dockerfile instruction to specify the maintainer of the Dockerfile?<br />
    27  	<input type="text" class="level" id="level1_q2"/>
    28  	<div class="alert alert-error level_error" id="level1_error2" style="display:none;">The right answer was <code>MAINTAINER</code></div>
    29  	<br>
    30  	What is the character used to add comment in Dockerfiles?<br />
    31  	<input type="text" class="level" id="level1_q3"/>
    32  	<div class="alert alert-error level_error" id="level1_error3" style="display:none;">The right answer was <code>#</code></div>
    33  	<p>
    34  	<div class="alert alert-success" id="all_good" style="display:none;">Congratulations, you made no mistake!<br />
    35  	Tell the world <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.docker.io/learn/dockerfile/level1/" data-text="I just successfully answered questions of the #Dockerfile tutorial Level 1. What's your score?" data-via="docker" >Tweet</a><br />
    36  	And try the next challenge: <a href="#fill-the-dockerfile">Fill the Dockerfile</a>
    37  	</div>
    38  	<div class="alert alert-error" id="no_good" style="display:none;">Your Dockerfile skills are not yet perfect, try to take the time to read this tutorial again.</div>
    39  	<div class="alert alert-block" id="some_good" style="display:none;">You're almost there! Read carefully the sections corresponding to your errors, and take the test again!</div>
    40  	</p>
    41  	<button class="btn btn-primary" id="check_level1_questions">Check your answers</button>
    42  </div>
    43  
    44  ### Fill the Dockerfile
    45  Your best friend Eric Bardin sent you a Dockerfile, but some parts were lost in the ocean. Can you find the missing parts?
    46  <div class="form-inline">
    47  <pre>
    48  &#35; This is a Dockerfile to create an image with Memcached and Emacs installed. <br>
    49  &#35; VERSION       1.0<br>
    50  &#35; use the ubuntu base image provided by dotCloud
    51  <input type="text" class="l_fill" id="from" /> ub<input type="text" class="l_fill" id="ubuntu" /><br>
    52  <input type="text" class="l_fill" id="maintainer" /> E<input type="text" class="l_fill" id="eric" /> B<input type="text" class="l_fill" id="bardin" />, eric.bardin@dotcloud.com<br>
    53  &#35; make sure the package repository is up to date
    54  <input type="text" class="l_fill" id="run0"/> echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
    55  <input type="text" class="l_fill" id="run1" /> apt-get update<br>
    56  &#35; install memcached
    57  RUN apt-get install -y <input type="text" class="l_fill" id="memcached" /><br>
    58  &#35; install emacs
    59  <input type="text" class="l_fill" id="run2"/> apt-get install -y emacs23
    60  </pre>
    61  </div>
    62  
    63  <div class="alert alert-success" id="dockerfile_ok" style="display:none;">Congratulations, you successfully restored Eric's Dockerfile! You are ready to containerize the world!.<br />
    64  Tell the world! <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://www.docker.io/learn/dockerfile/level1/" data-text="I just successfully completed the 'Fill the Dockerfile' challenge of the #Dockerfile tutorial Level 1" data-via="docker" >Tweet</a>
    65  </div>
    66  <div class="alert alert-error" id="dockerfile_ko" style="display:none;">Wooops, there are one or more errors in the Dockerfile. Try again.</div>
    67  <br>
    68  <button class="btn btn-primary" id="check_level1_fill">Check the Dockerfile</button></p>
    69  
    70  ## What's next?
    71  
    72  <p>In the next level, we will go into more detail about how to specify which command should be executed when the container starts,
    73  which user to use, and how expose a particular port.</p>
    74  
    75  <a title="back" class="btn btn-primary back" href="/userguide/dockerimages/#creating-our-own-images">Back</a>
    76  <a title="next level" class="btn btn-primary" href="/userguide/level2">Go to the next level</a>