doc-exports/docs/swr/umn/swr_01_0017.html
Dong, Qiu Jian 38e4c01e6c SWR UMN: Permission description is added
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-06-18 06:49:13 +00:00

28 lines
3.5 KiB
HTML

<a name="swr_01_0017"></a><a name="swr_01_0017"></a>
<h1 class="topictitle1">Pulling an Image</h1>
<div id="body1591325400748"><div class="section" id="swr_01_0017__section165112517497"><h4 class="sectiontitle">Scenario</h4><p id="swr_01_0017__en-us_topic_0084266454_p26262113592">You can run the <strong id="swr_01_0017__b2044119141517">docker pull</strong> command to pull images from SWR.</p>
</div>
<div class="section" id="swr_01_0017__section12536114414324"></div>
<div class="section" id="swr_01_0017__section13356144645616"><h4 class="sectiontitle">Procedure</h4><ol id="swr_01_0017__en-us_topic_0084266454_ol1535723214147"><li id="swr_01_0017__li14636133352214"><span>Log in to the VM running the container engine as the <strong id="swr_01_0017__b91611712121511">root</strong> user. </span></li><li id="swr_01_0017__li17667103735114"><span>Obtain a login command by referring to <a href="swr_01_0011.html#swr_01_0011__en-us_topic_0112596104_en-us_topic_0075378957_li58001655123">1</a> and access SWR.</span></li><li id="swr_01_0017__li72341837102811"><span>Log in to the SWR console.</span></li><li id="swr_01_0017__en-us_topic_0084266454_li182568055016"><span>In the navigation pane, choose <span class="uicontrol" id="swr_01_0017__uicontrol9126717181513"><b>My Images</b></span> and click the target image.</span></li><li id="swr_01_0017__en-us_topic_0084266454_li197783469319"><a name="swr_01_0017__en-us_topic_0084266454_li197783469319"></a><a name="en-us_topic_0084266454_li197783469319"></a><span>On the <strong id="swr_01_0017__b1074218412619">Image Tags</strong> tab page, in the same row as the target image tag, click <span><img id="swr_01_0017__image544413331165" src="en-us_image_0282767856.png"></span> in the <strong id="swr_01_0017__b181303314518">Image Pull Command</strong> column to copy the command.</span><p><div class="fignone" id="swr_01_0017__fig262614551515"><span class="figcap"><b>Figure 1 </b>Obtaining the image pull command</span><br><span><img id="swr_01_0017__image11626154511514" src="en-us_image_0000001154597496.png" height="129.351943" width="492.1" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="swr_01_0017__li616511233439"><span>Run the <strong id="swr_01_0017__b2456155915155">image pull</strong> command obtained in <a href="#swr_01_0017__en-us_topic_0084266454_li197783469319">5</a> on the VM.</span><p><p id="swr_01_0017__p111139327468">Run the <strong id="swr_01_0017__b63661044161">docker images</strong> command to check whether the images are successfully pulled.</p>
<pre class="screen" id="swr_01_0017__screen15419026204919"># docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
xxx/group/nginx v2.0.0 22f2bf2e2b4f 5 hours ago 22.8MB</pre>
</p></li><li id="swr_01_0017__li177891910121618"><span>(Optional) Run the following command to save the image as an archive file:</span><p><p id="swr_01_0017__p25393101487"><strong id="swr_01_0017__b19221436141915">docker save</strong> [<em id="swr_01_0017__i14925153651910">Image name:tag name</em>] <strong id="swr_01_0017__b15926636181919">&gt;</strong> [<em id="swr_01_0017__i1392612368198">Archive file name</em>]</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="swr_01_0028.html">Image Management</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>