What is the Dockerfile instruction to specify the base image?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error0"class="alert alert-error level_error">The right answer was <code>FROM</code></div><br>
Which Dockerfile instruction sets the default command for your image?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error4"class="alert alert-error level_error">The right answer was <code>ENTRYPOINT</code> or <code>CMD</code></div><br>
What is the character used to add comments in Dockerfiles?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error3"class="alert alert-error level_error">The right answer was <code>#</code></div><br>
Which Dockerfile instruction sets the username to use when running the image?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error5"class="alert alert-error level_error">The right answer was <code>USER</code></div><br>
What is the Dockerfile instruction to execute any command on the current image and commit the results?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error1"class="alert alert-error level_error">The right answer was <code>RUN</code></div><br>
Which Dockerfile instruction sets ports to be exposed when running the image?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error6"class="alert alert-error level_error">The right answer was <code>EXPOSE</code></div><br>
What is the Dockerfile instruction to specify the maintainer of the Dockerfile?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error2"class="alert alert-error level_error">The right answer was <code>MAINTAINER</code></div><br>
Which Dockerfile instruction lets you trigger a command as soon as the container starts?<br>
<inputtype="text"class="level">
<divstyle="display:none;"id="level2_error7"class="alert alert-error level_error">The right answer was <code>ENTRYPOINT</code> or <code>CMD</code></div><br>
<p>
<divclass="alert alert-success"id="all_good"style="display:none;">Congratulations, you made no mistake!<br/>
Tell the world <ahref="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/>
<divclass="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>
<divclass="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>
</p>
<buttonclass="btn btn-primary"id="check_level2_questions">Check your answers</button>
</div>
### Fill the Dockerfile
<br>
Your best friend Roberto Hashioka sent you a Dockerfile, but some parts were lost in the ocean. Can you find the missing parts?
<divclass="form-inline">
<pre>
# Redis
#
# VERSION 0.42
#
# use the ubuntu base image provided by dotCloud
<divclass="alert alert-success"id="dockerfile_ok"style="display:none;">Congratulations, you successfully restored Roberto's Dockerfile! You are ready to containerize the world!.<br/>
Tell the world! <ahref="https://twitter.com/share"class="twitter-share-button"data-url="http://www.docker.io/learn/dockerfile/level2/"data-text="I just successfully completed the 'Dockerfill' challenge of the #Dockerfile tutorial Level 2"data-via="docker">Tweet</a>
</div>
<divclass="alert alert-error"id="dockerfile_ko"style="display:none;">Wooops, there are one or more errors in the Dockerfile. Try again.</div>
<br>
<buttonclass="btn btn-primary"id="check_level2_fill">Check the Dockerfile</button></p>
To improve your Dockerfile writing skills even further, visit the <ahref="https://docs.docker.com/articles/dockerfile_best-practices/">Dockerfile best practices page</a>.