doc-exports/docs/modelarts/umn/docker-modelarts_0018.html
Lai, Weijian 4e4b2d5f6d ModelArts UMN 23.3.0 Version.
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-06-26 07:03:02 +00:00

30 lines
5.3 KiB
HTML

<a name="EN-US_TOPIC_0000001919187108"></a><a name="EN-US_TOPIC_0000001919187108"></a>
<h1 class="topictitle1">How Can I Upload Images to SWR?</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_p1380521175916">This section describes how to upload images to SWR.</p>
<div class="section" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_section43027110533"><h4 class="sectiontitle">Step 1 Logging In to SWR</h4><ol id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_ol1278616324614"><li id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_li4786832465">Log in to the SWR console.</li><li id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_li37874316461">Click <strong id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_b8910052193215">Create Organization</strong> in the upper right corner and enter an organization name to create an organization. You can customize an organization name. In this case, <strong id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_b117698616421553">deep-learning</strong> is used as an example. The organization name <strong id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_b184964644021553">deep-learning</strong> used in subsequent commands must be replaced with the actual organization name.</li><li id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_li1925165915499">Click <strong id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_b123211914163311">Generate Login Command</strong> in the upper right corner to obtain a login command.<div class="fignone" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_fig93322058205316"><span class="figcap"><b>Figure 1 </b>Login Command</span><br><span><img id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_image102151296372" src="figure/en-us_image_0000001853022313.png" width="469.49" height="228.90630000000004" title="Click to enlarge" class="imgResize"></span></div>
</li><li id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_li58381625119">Log in to the ECS environment as the <strong id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_b186917114260">root</strong> user and enter the login command.<div class="fignone" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_fig181834163710"><span class="figcap"><b>Figure 2 </b>Login command executed on the ECS</span><br><span><img id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_image922091918017" src="figure/en-us_image_0000001799498612.png" width="498.351" height="44.834300000000006" title="Click to enlarge" class="imgResize"></span></div>
</li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_section99741223135314"><h4 class="sectiontitle">Step 2 Uploading Images to SWR</h4><div class="p" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_p7381174918537">This section describes how to upload an image to SWR.<ol id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_ol412563218195"><li id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_li14647102817199">Log in to SWR and tag the image to be uploaded. Replace the organization name <strong id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_b147176226521553">deep-learning</strong> in subsequent commands with the actual organization name configured in step 1.<pre class="screen" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_screen119921642142116">sudo docker tag tf-1.13.2:latest swr.xxx.com/deep-learning/tf-1.13.2:latest</pre>
</li><li id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_li354527132015">Run the following command to upload the image:<pre class="screen" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_screen0536156142412">sudo docker push swr.xxx.com/deep-learning/tf-1.13.2:latest</pre>
<div class="p" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_p16922149105312"><div class="fignone" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_fig10880134116532"><span class="figcap"><b>Figure 3 </b>Uploading an image</span><br><span><img id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_image1960593013410" src="figure/en-us_image_0000001799338848.png" width="470.022" height="220.80660000000003" title="Click to enlarge" class="imgResize"></span></div>
</div>
</li><li id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_li31358241555">After the image is uploaded, choose <strong id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_b1285335421553">My Images</strong> on the left navigation pane of the SWR console to view the uploaded custom images.<p id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_p1164485945420"><span class="parmname" id="EN-US_TOPIC_0000001919187108__en-us_topic_0000001799338804_parmname1644359175414"><b>swr.xxx.com/deep-learning/tf-1.13.2:latest</b></span> is the SWR URL of the custom image.</p>
</li></ol>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="docker-modelarts_0016.html">FAQ</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>