<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Courier;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:80030965;
        mso-list-type:hybrid;
        mso-list-template-ids:-400418088 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">A few months ago, I asked a question wrt whether
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">                MAGNUM pushed container images (from Glance) to the COE Master (e.g. SWARM Master) of the Magnum Bays ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:Calibri">The answer was NO … other than the initial swarm container image, all other container images were downloaded by the docker daemon (either Swarm Master or Swarm
 Minion/Worker … I guess) from the </span>OFFICIAL image hub from <a href="https://hub.docker.com/">
https://hub.docker.com/</a> … when a container was launched referencing a particular container image.<span style="font-size:11.0pt;font-family:Calibri"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><u><span style="font-size:11.0pt;font-family:Calibri">FOLLOW UP QUESTIONS:<o:p></o:p></span></u></b></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt;font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">I would like to use a LOCAL Container Image Repository (Docker Registry?) with the MAGNUM deployment on OpenStack<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt;font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">I would like to:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level2 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:"Courier New""><span style="mso-list:Ignore">o<span style="font:7.0pt "Times New Roman"">   
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">deploy a LOCAL Container Image Repository (Docker Registry?) in a VM of OpenStack, and<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level2 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:"Courier New""><span style="mso-list:Ignore">o<span style="font:7.0pt "Times New Roman"">   
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">then deploy a MAGNUM BAY (e.g. Docker SWARM Master & Nodes) which ONLY use this LOCAL Container Image Repository<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt;mso-list:l0 level3 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:Wingdings"><span style="mso-list:Ignore">§<span style="font:7.0pt "Times New Roman""> 
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">i.e. there is no requirement for external access to
<a href="https://hub.docker.com/">https://hub.docker.com/</a> <o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt;mso-list:l0 level3 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:Wingdings"><span style="mso-list:Ignore">§<span style="font:7.0pt "Times New Roman""> 
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">and<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt;mso-list:l0 level3 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:Wingdings"><span style="mso-list:Ignore">§<span style="font:7.0pt "Times New Roman""> 
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">I can push private container images into this LOCAL Container Image Repository … and they will be available to my MAGNUM Bay<br>
<br>
<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt;font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">Assuming the answer is YES<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level2 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:"Courier New""><span style="mso-list:Ignore">o<span style="font:7.0pt "Times New Roman"">   
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri">wrt Deploying a LOCAL Container Image Repository (Docker Registry?) in a VM of OpenStack<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt;mso-list:l0 level3 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:Wingdings"><span style="mso-list:Ignore">§<span style="font:7.0pt "Times New Roman""> 
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri;background:yellow;mso-highlight:yellow">is this
<a href="https://docs.docker.com/registry/deploying/">https://docs.docker.com/registry/deploying/</a>
<br>
a good example of what I would do (inside the VM) to setup this Docker Registry ?</span><span style="font-size:11.0pt;font-family:Calibri"><br>
<br>
<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level2 lfo1">
<![if !supportLists]><span style="font-size:11.0pt;font-family:"Courier New";background:yellow;mso-highlight:yellow"><span style="mso-list:Ignore">o<span style="font:7.0pt "Times New Roman"">   
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:Calibri;background:yellow;mso-highlight:yellow">How do I launch the MAGNUM BAY such that it uses my LOCAL Container Image Repository (Docker Registry?) by default … and NOT
<a href="https://hub.docker.com/">https://hub.docker.com/</a>   ???<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Greg.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">taget <qiaoliyong@gmail.com><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Tuesday, July 19, 2016 at 9:57 PM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [Magnum] What is Magnum's behaviour wrt Images in Glance and which ones are downloaded to COE ?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 2016<span style="font-family:"MS Mincho"">年</span>07<span style="font-family:"MS Mincho"">月</span>20<span style="font-family:"MS Mincho"">日</span> 00:35, Waines, Greg wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:Calibri;color:#0070C0">I created a Docker-Swarm bay and successfully launched a simple container.</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:Calibri;color:#0070C0"> </span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:Calibri;color:#0070C0">What is the behavior of MAGNUM wrt downloading of Container-formatted Images in Glance to the COE ?</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:Calibri;color:#0070C0"> </span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:Calibri;color:#0070C0">e.g. in the setup from the above link</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">gwaines@wildcat-76:~$ glance -v image-list</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+----------------------------------+</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">| ID                                   | Name                            | Disk_format | Container_format | Size      | Status | Owner                            |</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+----------------------------------+</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">| 96a63dda-e9e8-45ac-843c-1635909aa79e | cirros-0.3.4-x86_64-uec         | ami         | ami              | 25165824  | active | a7e010ece2bf4bbfa84551a03c0770ae |</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">| 9ff4c5a2-30d8-4c46-ac3e-fde566654fec | cirros-0.3.4-x86_64-uec-kernel  | aki         | aki              | 4979632   | active | a7e010ece2bf4bbfa84551a03c0770ae |</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">| df11374e-ef88-47eb-8603-5e646fa7c76c | cirros-0.3.4-x86_64-uec-ramdisk | ari         | ari              | 3740163   | active | a7e010ece2bf4bbfa84551a03c0770ae |</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">| 296d607a-6d7a-472b-987d-8bcde63ff124 | fedora-atomic-latest            | qcow2       | bare             | 507928064 | active | a7e010ece2bf4bbfa84551a03c0770ae |</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+----------------------------------+</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">gwaines@wildcat-76:~$</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">gwaines@wildcat-76:~$ docker images</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">swarm               1.0.0               4a0d7b83266a        5 months ago        0 B</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">cirros              latest              807dd1cf91c7        6 months ago        0 B</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:48.0pt;text-indent:-48.0pt;text-autospace:none">
<span style="font-size:8.0pt;font-family:Courier;color:#0070C0">gwaines@wildcat-76:~$</span><span style="font-family:Calibri;color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#0070C0"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#0070C0">Does MAGNUM automatically download all Glance Images of a particular Container Format to the COE ?</span><span style="color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal">No, Magnum will not do this.<br>
Only  the swarm docker image is download by Magnum.<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#0070C0">In the above setup, which Glance Image does the ‘docker image’ “cirros” correspond to ?</span><span style="color:#0070C0"><o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal">None of from glance image.<br>
<br>
You launched the swarm docker container with image 'cirros', the image of 'cirros' was downloaded by docker daemon which is from OFFICIAL image hub from
<a href="https://hub.docker.com/">https://hub.docker.com/</a><br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Best Regards, <o:p></o:p></pre>
<pre>Eli Qiao (<span style="font-family:SimSun">乔</span><span style="font-family:Calibri">立勇</span>), Intel OTC.<o:p></o:p></pre>
</div>
</body>
</html>