This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/tutorial/create-image.html
2014-04-08 20:33:20 -04:00

22 lines
1.3 KiB
HTML

<div class="alert alert-info">
<div class="control-group">
<label class="control-label" for="containerId">Enter a repository name:</label>
<div class="form-inline">
<form name="repoNameForm">
<input type="text" id="repoName" name="repoName" class="form-control"
ng-model="tour.tourScope.repoName" ng-pattern="/^[a-z0-9_-]+$/">
</form>
</div>
<span ng-show="!repoNameForm.repoName.$valid" style="margin-left: 10px; margin-top: 7px;">
Repository names must match [a-z0-9_-]+
</span>
</div>
</div>
<p>Once a container has terminated in Docker, the next step is to <i>commit</i> the container to an image, and then <i>tag</i> that image with a relevant name so it can be saved to a repository.</p>
<p>Docker lets us do this in one step with the <i>commit</i> command. To do so, we run the <code>docker commit</code> with the container ID from the previous step and tag it to be a repository under <code>{{ tour.tourScope.domainName }}</code>.
<pre class="command">
<code ng-show="tour.tourScope.showSudo">sudo </code>docker commit <var class="var1">{{ tour.tourScope.containerId || 'containerId' }}</var> {{ tour.tourScope.domainName }}/{{ tour.tourScope.username }}/<var class="var2">{{ tour.tourScope.repoName || 'myfirstrepo' }}</var>
</pre>