A few months ago, I asked a question wrt whether
                MAGNUM pushed container images (from Glance) to the COE Master 
(e.g. SWARM Master) of the Magnum Bays ?

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 OFFICIAL image hub from 
https://hub.docker.com/ … when a container was launched referencing a 
particular container image.


FOLLOW UP QUESTIONS:

·         I would like to use a LOCAL Container Image Repository (Docker 
Registry?) with the MAGNUM deployment on OpenStack

·         I would like to:

o    deploy a LOCAL Container Image Repository (Docker Registry?) in a VM of 
OpenStack, and

o    then deploy a MAGNUM BAY (e.g. Docker SWARM Master & Nodes) which ONLY use 
this LOCAL Container Image Repository

§  i.e. there is no requirement for external access to https://hub.docker.com/

§  and

§  I can push private container images into this LOCAL Container Image 
Repository … and they will be available to my MAGNUM Bay


·         Assuming the answer is YES

o    wrt Deploying a LOCAL Container Image Repository (Docker Registry?) in a 
VM of OpenStack

§  is this https://docs.docker.com/registry/deploying/
a good example of what I would do (inside the VM) to setup this Docker Registry 
?


o    How do I launch the MAGNUM BAY such that it uses my LOCAL Container Image 
Repository (Docker Registry?) by default … and NOT https://hub.docker.com/   ???


Greg.


From: taget <[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Tuesday, July 19, 2016 at 9:57 PM
To: "[email protected]" <[email protected]>
Subject: Re: [openstack-dev] [Magnum] What is Magnum's behaviour wrt Images in 
Glance and which ones are downloaded to COE ?


On 2016年07月20日 00:35, Waines, Greg wrote:

I created a Docker-Swarm bay and successfully launched a simple container.

What is the behavior of MAGNUM wrt downloading of Container-formatted Images in 
Glance to the COE ?

e.g. in the setup from the above link
gwaines@wildcat-76:~$ glance -v image-list
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+----------------------------------+
| ID                                   | Name                            | 
Disk_format | Container_format | Size      | Status | Owner                     
       |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+----------------------------------+
| 96a63dda-e9e8-45ac-843c-1635909aa79e | cirros-0.3.4-x86_64-uec         | ami  
       | ami              | 25165824  | active | 
a7e010ece2bf4bbfa84551a03c0770ae |
| 9ff4c5a2-30d8-4c46-ac3e-fde566654fec | cirros-0.3.4-x86_64-uec-kernel  | aki  
       | aki              | 4979632   | active | 
a7e010ece2bf4bbfa84551a03c0770ae |
| df11374e-ef88-47eb-8603-5e646fa7c76c | cirros-0.3.4-x86_64-uec-ramdisk | ari  
       | ari              | 3740163   | active | 
a7e010ece2bf4bbfa84551a03c0770ae |
| 296d607a-6d7a-472b-987d-8bcde63ff124 | fedora-atomic-latest            | 
qcow2       | bare             | 507928064 | active | 
a7e010ece2bf4bbfa84551a03c0770ae |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+----------------------------------+
gwaines@wildcat-76:~$
gwaines@wildcat-76:~$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             
SIZE
swarm               1.0.0               4a0d7b83266a        5 months ago        
0 B
cirros              latest              807dd1cf91c7        6 months ago        
0 B
gwaines@wildcat-76:~$

Does MAGNUM automatically download all Glance Images of a particular Container 
Format to the COE ?

No, Magnum will not do this.
Only  the swarm docker image is download by Magnum.

In the above setup, which Glance Image does the ‘docker image’ “cirros” 
correspond to ?
None of from glance image.

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 
https://hub.docker.com/


--

Best Regards,

Eli Qiao (乔立勇), Intel OTC.
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to