<div dir="ltr">Interesting. I'm not a docker expert, but it's an interesting idea. But is only a 1 replica, 1 device system. maybe if it was extended you so you add more devices or more containers to grow the cluster, that could be cool. The ring management would be the interesting part. And if you want to grow it you may want to give it some real disks so how do they plumb.<div>But like the author said, it's a good POC, and could be expanded.</div><div><br></div><div>Now how can you access it from another container. The -p command says to publish the docker container's port 8080 to your hosts 12345 port on all interfaces. So pointing at the host machine on port 12345 will actually connect to port 8080 on the docker container. This means if you want the other container to talk to the swift one, just hit up either the host's IP on 12345 or the swift container's IP on port 8080. Noting I don't know if you need to look at iptables or routing on the host to do the latter.</div><div><br></div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 25, 2017 at 8:30 AM, Jaln <span dir="ltr"><<a href="mailto:valiantljk@gmail.com" target="_blank">valiantljk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>I have installed swift in a docker container, and opened another container, where I want to use swift. </div><div><br></div><div>Here is how I configured swift container: </div><div>I followed <a href="https://hub.docker.com/r/morrisjobke/docker-swift-onlyone/" target="_blank">https://hub.docker.com/r/<wbr>morrisjobke/docker-swift-<wbr>onlyone/</a><br></div><div><br></div><div>and launched this swift container with: </div><div><pre style="box-sizing:inherit;overflow:auto;font-family:monospace,monospace;font-size:16px;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(85,85,85)"><code style="box-sizing:inherit;font-family:Consolas,"Liberation Mono",Courier,monospace;font-size:1em;background-color:rgb(248,248,248);border-color:rgb(223,223,223);border-style:solid;border-width:0px;color:rgb(51,51,51);padding:0.125rem 0.3125rem 0.0625rem">docker run -d -p 12345:8080 --volumes-from SWIFT_DATA -t morrisjobke/docker-swift-<wbr>onlyone</code></pre></div><div><br></div><div>Then, I can connect to swift from host, but not from another container, e.g., </div><div><br></div><div><br></div><div><pre style="box-sizing:inherit;overflow:auto;font-family:monospace,monospace;font-size:16px;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(85,85,85)"><code style="box-sizing:inherit;font-family:Consolas,"Liberation Mono",Courier,monospace;font-size:1em;background-color:rgb(248,248,248);border-color:rgb(223,223,223);border-style:solid;border-width:0px;color:rgb(51,51,51);padding:0.125rem 0.3125rem 0.0625rem">swift -A <a href="http://127.0.0.1:12345/auth/v1.0" target="_blank">http://127.0.0.1:12345/auth/<wbr>v1.0</a> -U test:tester -K testing stat</code></pre><div><br></div><br>
</div><div>While in another container: </div><div>docker run -it ubuntu bash</div><div><br></div><div>How can I use swift?</div><div><br></div><div>Best,</div><div>Jialin</div></div>
<br>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
<br></blockquote></div><br></div>