Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

Implementing Docker-Datacenter-In-A-Box (Container-as-a-Service) on VMware ESXi platform

4 min read

The critical component for any enterprise IT, either having multiple data centers or a hybrid cloud or multiple cloud providers, is the ability to migrate workloads from one environment to another, without causing application issues. With Docker Datacenter (CaaS in-a-box), you can abstract the infrastructure away from the application, allowing the application containers to be run anywhere and portable across any infrastructure, from on-premises datacenters to public clouds, across a vast array of network and storage providers.

As per Docker Inc. “Docker Datacenter is an integrated solution including open source and commercial software, the integrations between them, full Docker API support, validated configurations and commercial support for your Docker Datacenter environment. A pluggable architecture allows flexibility in compute, networking and storage providers used in your CaaS infrastructure without disrupting the application code. Enterprises can leverage existing technology investments with Docker Datacenter. The open APIs allow Docker Datacenter CaaS to easily integrate into your existing systems like LDAP/AD, monitoring, logging and more.”

Docker_UCP

Basically, Docker CaaS is an IT Ops managed and secured application environment of infrastructure and content that allows developers to build and deploy applications in a self service manner.
With Docker Datacenter, IT ops teams can store their IP and maintain their management plane on premises (datacenter or VPC). Its an equal treat for developers too – Developers are able to leverage trusted base content, build and ship applications freely as needed without worrying about altering the code to deploy in production.

Docker Datacenter comes with the following integrated components and newer capabilities shown below:

NewDE1111

 

 

DDC_Image1

To get started with the implementation, I leveraged 3-node VMs (running on my ESXi 6.0) running Docker 1.11.1 version.

DDC_ESXi

The whole idea is to install Universal Control Plane(UCP) on the master node  and start joining Docker Engines(Client Nodes) to the Swarm cluster with just a few commands in the CLI. Once up and running, use the intuitive web admin UI to configure your system settings, integrate to LDAP/AD, add users or connect your Trusted Registry. End users can also use the web UI to interact with applications, containers, networks, volumes and images as part of their development process.  At the end of this blog post, you will realize its just a matter of few commands which can help you setup DDC-In-A-Box.

 

DDC_35

Setting up UCP Controller Node:

I picked up Ubuntu 14.04 system for setting up UCP controller node. First install Docker 1.11.1 on this system using the below command:

#curl -fsSL https://get.docker.com/ | sh

My machine showed the below docker information:

Client:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:30:23 2016
OS/Arch: linux/amd64

Server:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:30:23 2016
OS/Arch: linux/amd64

You install UCP by using the Engine CLI to run the ucp tool. The ucp tool is an image with subcommands to install a UCP controller or join a node to a UCP controller. Let’s setup a UCP controller node first as shown below:

root@ucp-client1:~# docker run –rm -it –name ucp   -v /var/run/docker.sock:/var/run/docker.sock   docker/ucp install -i   –host-address 10.94.214.195

Once this command is successful, you will need to add your user to “docker” group as shown below:

$sudo usermod -aG docker  <user>

I had a user “dell” added to this group, hence it will show up:

dell@dell-virtual-machine:~$ id
uid=1000(dell) gid=1000(dell) groups=1000(dell),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare),999(docker)

 

UCP_Image01

 

Attaching UCP Nodes to the Controller Node

Browse to UCP Controller WebUI  > Nodes > Add Node as shown below:

UCP_Node1

I assume Docker 1.11 is already installed on the UCP Client node to be attached to controller node.

Let’s run the below command to join it to the cluster:

root@ucp-client1:~# docker run –rm -it –name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp join   –admin-username admin   –interactive   –url https://10.94.214.195   –fingerprint 11:43:43:18:F2:82:D7:80:E7:8E:2C:2C:4A:F5:27:A0:C9:A2:FC:DC:E8:3E:62:56:15:BC:7F:FA:CE:0B:8D:C2

…..

This will end up with the following SUCCESS message:

INFO[0011] Starting local swarm containers

INFO[0013] New configuration established.  Signalling the daemon to load it…

INFO[0014] Successfully delivered signal to daemon

UCP_Node12

You can check that this is part of UCP cluster as show below:

root@ucp-client1:~# docker info | tail -3

WARNING: No swap limit support

Registry: https://index.docker.io/v1/

Cluster store: etcd://10.94.214.195:12379

Cluster advertise: 10.94.214.208:12376

Similarly, add the 3rd Node to the controller node and hence you will see it displayed under UCP Web UI:

UCP_Node3

 

If you try to see what containers are running on your client nodes:

[root@ucp-client2 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d862f8d89841 docker/ucp-swarm:1.1.0 “/swarm join –discov” 38 minutes ago Up 38 minutes 2375/tcp ucp-swarm-join
a519b9a913d4 docker/ucp-proxy:1.1.0 “/bin/run” 38 minutes ago Up 38 minutes 0.0.0.0:12376->2376/tcp ucp-proxy

How UCP handles the newly created container might be one curious question for anyone who deploy DDC for the first time. Let’s try creating a nagios container and see how DDC actually handles that.

Browse to Dashboard > Containers > Deploy and let’s create a new container called nagios_ajeetraina as shown below:

DDC_1

Ensure that the port 80 has been listed under the exposed ports as shown below:

 

 

DDC_2

 

As shown below, the nagios container is built from ajeetraina/nagios image from Dockerhub.

DDC_3

You can see the complete status details of Nagios container under Container section :

DDC-4

As you scroll down, the ports information is rightly shown:

DDC-5

Now lets check what does it shows under 10.94.214.210 box:

If you go to 10.94.214.210 machine and check the running container, you will find:

 

[root@ucp-client1 ~]# docker ps

CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                        NAMES

0f4fd5a286d2        ajeetraina/nagios:latest   “/usr/bin/supervisord”   12 hours ago        Up 12 hours         25/tcp, 0.0.0.0:80->80/tcp   ajeetraina-nagios

d862f8d89841        docker/ucp-swarm:1.1.0     “/swarm join –discov”   21 hours ago        Up 21 hours         2375/tcp                     ucp-swarm-join

a519b9a913d4        docker/ucp-proxy:1.1.0     “/bin/run”               21 hours ago        Up 21 hours         0.0.0.0:12376->2376/tcp      ucp-proxy

DDC_34

Yipee !!! The UCP and swarm got the Nagios up and running on the available resource i.e., 10.94.214.210

What if I start another instance of Nagios? Shall we try that?  

I will create another container again under DDC Web UI. Here I have the snapshot of the container:

DDC_10

Let’s check what port it has been running on:

DDC_11

 

Well, I supplied port number: 80 while I created the new container. Let me see if Nagios is coming up fine or not.

DDC_13

 

This is just awesome !!! The UCP and Swarm together pushed the new Nagios container to the other client node which is now hosting the Nagios under the port:81 as expected.

Hence we saw that Docker Datacenter brings interesting features like UCP, Docker API and embeds Swarm integration which  allows the application portability based on resource availability and  makes “scale-out” architecture possible through an easy setup.

 

 

 

Have Queries? Join https://launchpass.com/collabnix

Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

182 Replies to “Implementing Docker-Datacenter-In-A-Box (Container-as-a-Service) on VMware ESXi platform”

  1. I have been surfing on-line more than three hours
    nowadays, but I never found any interesting article like
    yours. It’s pretty worth sufficient for me. In my opinion, if all
    web owners and bloggers made excellent content material as you did, the net will likely be a lot more helpful than ever before.

  2. I will immediately grab your rss feed as I can not to find your email subscription hyperlink
    or e-newsletter service. Do you’ve any? Please allow
    me recognise in order that I may just subscribe.
    Thanks.

  3. Hey there would you mind stating which blog platform you’re using?

    I’m looking to start my own blog soon but I’m having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems different then most blogs and I’m looking for
    something completely unique. P.S Sorry for getting
    off-topic but I had to ask!

  4. I think this is one of the most significant info for me. And i am glad reading your article.
    But want to remark on few general things, The web site style is great, the articles is
    really nice : D. Good job, cheers

  5. Hi there, just became mindful of your site through Google, and located that it’s truly informative.
    I am gonna watch out for brussels. I’ll appreciate
    when you continue this from now on. A great deal
    of men and women will be took advantage of your
    writing. Cheers!

  6. Maybe you have considered about adding a little more than simply
    the articles you write? After all, the things you say is fundamental and all.

    However imagine should you added some very nice graphics or video
    clips to offer your site content more, “pop”!
    Your site content is fantastic but with images and videos,
    this site could definitely be among the best
    in their field. Amazing blog!

  7. After looking over a number of the blog articles in your blog, I honestly just like your strategy for blogging.
    I book marked it to my bookmark site list and are checking back soon. Check out my website
    too and let me know your feelings.

  8. Hello there I am so happy I found your site,
    I really found you by mistake, while I was researching on Askjeeve
    for something else, Nonetheless I am here now and would just like
    to say kudos for a fantastic post and a all round exciting blog (I also love
    the theme/design), I dont have time to read it all at the
    minute but I have saved it and also added your RSS feeds, so
    when I have time I will be back to read a lot more,
    Please do keep up the fantastic b.

  9. Terrific paintings! That is the kind of information that are supposed to be shared around the web. Disgrace on the search engines for not positioning this submit upper! Come on over and visit my web site . Thanks =)

  10. I have been surfing online more than three hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. Personally, if all website owners and bloggers made good content as you did, the net will be much more useful than ever before.

  11. I just want to mention I am just newbie to weblog and seriously savored this website. Likely I’m likely to bookmark your website . You certainly come with wonderful writings. Bless you for sharing with us your blog site.

  12. Attractive section of content. I just stumbled upon your blog and in accession capital to assert that I acquire actually enjoyed account your blog posts. Anyway I will be subscribing to your feeds and even I achievement you access consistently fast.

  13. I just want to say I am all new to blogs and certainly loved this web blog. Most likely I’m want to bookmark your blog . You actually come with great articles. Thanks a bunch for sharing your web site.

  14. Just want to say your article is as astounding.
    The clarity for your post is simply spectacular and that i can think you are knowledgeable in this subject.
    Fine together with your permission allow me to clutch your feed to keep up
    to date with imminent post. Thank you one million and please continue the
    enjoyable work.

  15. Simply wish to say your article is as amazing. The clearness in your post is just cool and i could assume you’re an expert on this subject. Well with your permission let me to grab your feed to keep updated with forthcoming post. Thanks a million and please carry on the enjoyable work.

  16. You actually make it seem so easy with your presentation but I find this matter to be really something which I think I would never understand. It seems too complex and very broad for me. I am looking forward for your next post, I’ll try to get the hang of it!

  17. I simply want to mention I’m all new to weblog and really enjoyed this web-site. Almost certainly I’m planning to bookmark your blog . You definitely come with superb posts. Thanks for sharing your website page.

  18. I simply want to mention I’m beginner to blogging and site-building and definitely liked this web blog. Probably I’m going to bookmark your website . You definitely come with terrific well written articles. Thanks a bunch for sharing your webpage.

  19. Hiya, I’m really glad I have found this information. Nowadays bloggers publish just about gossips and internet and this is really frustrating. A good blog with interesting content, this is what I need. Thank you for keeping this website, I will be visiting it. Do you do newsletters? Can’t find it.

  20. Hiya, I’m really glad I have found this information. Nowadays bloggers publish only about gossips and web and this is actually annoying. A good blog with interesting content, that is what I need. Thanks for keeping this website, I’ll be visiting it. Do you do newsletters? Cant find it.

  21. I like what you guys are up too. Such intelligent work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my website 🙂

  22. I wanted to compose you that very little remark to finally give thanks yet again with the great pointers you have discussed on this page. It’s simply wonderfully open-handed with people like you to give publicly just what a lot of folks could possibly have supplied as an e book to earn some money for their own end, and in particular considering that you might well have done it in case you desired. Those thoughts additionally acted as the easy way to know that many people have a similar passion like my very own to know the truth very much more with regards to this issue. I am certain there are many more enjoyable periods in the future for people who find out your site.

  23. Terrific work! That is the kind of information that are supposed to be shared around the web. Shame on Google for now not positioning this put up higher! Come on over and discuss with my site . Thanks =)

  24. Right here is the perfect blog for anybody who wants to understand this topic. You understand a whole lot its almost hard to argue with you (not that I really will need to…HaHa). You certainly put a brand new spin on a topic which has been written about for many years. Wonderful stuff, just excellent!

  25. Admiring the time and effort you put into your site and in depth information you present. It’s good to come across a blog every once in a while that isn’t the same old rehashed material. Fantastic read! I’ve saved your site and I’m including your RSS feeds to my Google account.

  26. I would like to thnkx for the efforts you’ve put in writing this site. I am hoping the same high-grade blog post from you in the upcoming as well. Actually your creative writing abilities has encouraged me to get my own blog now. Actually the blogging is spreading its wings fast. Your write up is a good example of it.

  27. You could definitely visit your expertise throughout the work you write.
    The entire world hopes for a lot more passionate writers as if you who aren’t afraid to note the direction they believe.
    Always go after your heart.

  28. Good post. I learn something tougher on totally different blogs everyday. It can at all times be stimulating to read content from other writers and apply slightly something from their store. I抎 desire to use some with the content material on my blog whether or not you don抰 mind. Natually I抣l offer you a link in your internet blog. Thanks for sharing.

  29. A lot of thanks for your entire effort on this web site. Betty take interest in working on investigation and it’s easy to understand why. I hear all concerning the powerful tactic you offer priceless tricks by means of your blog and as well as foster contribution from some other people on the issue so our princess is actually becoming educated a great deal. Enjoy the remaining portion of the new year. You are always performing a fabulous job.

  30. I like the helpful information you provide in your articles. I’ll bookmark your weblog and check again here regularly. I’m quite sure I will learn many new stuff right here! Good luck for the next!

  31. I precisely wanted to thank you very much again. I am not sure the things I would’ve achieved without the type of points shared by you over this question. It was an absolute frightening issue in my circumstances, but encountering your well-written fashion you handled the issue made me to jump over gladness. Extremely happier for the assistance and then sincerely hope you comprehend what a great job you are undertaking educating men and women via a site. Most likely you have never got to know all of us.

  32. Hi there would you mind letting me know which webhost you’re utilizing? I’ve loaded your blog in 3 different web browsers and I must say this blog loads a lot quicker then most. Can you suggest a good web hosting provider at a honest price? Thanks a lot, I appreciate it! daeekdkeegga

  33. I simply wished to say thanks once more. I do not know the things I would’ve implemented without the creative concepts discussed by you regarding this theme. Completely was a very hard setting in my opinion, however , discovering the well-written avenue you handled it took me to leap with gladness. Now i’m happy for your advice and even believe you realize what an amazing job your are putting in training many people all through a site. Most likely you’ve never come across any of us.

  34. I’m extremely impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it’s rare to see a great blog like this one nowadays..

  35. I like the helpful information you provide in your articles. Ill bookmark your weblog and check again here regularly. I’m quite certain I will learn plenty of new stuff right here! Good luck for the next! bdfdaddeeedf

  36. Spot lets start off perform on this writeup, I seriously consider this astounding internet site needs much more consideration. Ill apt to become once again to find out to read considerably a lot more, thank you that information. deebdbdccbgbaeef

  37. Excellent weblog right here! Also your website quite a bit up fast! What web host are you the use of? Can I am getting your associate hyperlink for your host? I desire my web site loaded up as fast as yours lol

  38. I would like to express some thanks to the writer for rescuing me from this type of difficulty. After surfing around throughout the internet and obtaining views that were not helpful, I thought my life was over. Being alive without the presence of answers to the difficulties you have resolved by means of the short post is a serious case, and the ones that could have adversely affected my career if I hadn’t discovered your web blog. Your good knowledge and kindness in playing with all things was invaluable. I don’t know what I would have done if I had not discovered such a subject like this. I am able to at this time relish my future. Thanks a lot very much for this expert and sensible help. I will not hesitate to endorse the blog to any individual who should receive support on this situation.

  39. This is really attentiongrabbing, You’re a very professional blogger. I have joined your rss feed and sit up for in search of extra of your fantastic post. Also, I have shared your site in my social networks! efbfdaeegfcg

  40. This is the right blog for anyone who wants to find out about this topic. You realize so significantly its almost hard to argue with you (not that I actually would want…HaHa). You surely put a new spin on a topic thats been written about for years. Excellent stuff, just great!

  41. Youre so cool! I dont suppose Ive learn anything like this before. So very good to search out someone with some authentic ideas on this subject. realy thank you for beginning this up. this internet web site is 1 thing that’s necessary on the web, someone with somewhat originality. helpful job for bringing something new to the internet!

  42. I simply want to say I’m very new to blogs and really enjoyed your web-site. More than likely I’m want to bookmark your blog post . You really come with very good writings. Appreciate it for sharing with us your website page.

  43. Have you ever thought about including a little bit more than just your articles? I mean, what you say is valuable and all. But think of if you added some great pictures or video clips to give your posts more, “pop”! Your content is excellent but with pics and videos, this website could certainly be one of the most beneficial in its field. Awesome blog!

  44. Normally I don’t learn article on blogs, but I would like to say that this write-up very forced me to try and do it! Your writing taste has been surprised me. Thank you, very nice post.

  45. Thank you for the sensible critique. Me & my cousin were just preparing to do some research on this. We grabbed a book from our area library but I think I learned a lot more from this post. I’m really glad to see such fantastic info being shared freely out there…

  46. Great ¡V I should definitely pronounce, impressed with your site. I had no trouble navigating through all tabs as well as related information ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Excellent task..

  47. Hi there, just became alert to your weblog by way of Google, and found that it is genuinely informative. I’m gonna watch out for brussels. I is going to be grateful in case you continue this in future. Several people is going to be benefited from your writing. Cheers!

  48. I simply could not go away your web site prior to suggesting that I actually enjoyed the usual information a person supply on your visitors? Is going to be back ceaselessly in order to check out new posts.

  49. Nice post. I was checking continuously this weblog and I am impressed! Extremely useful information particularly the last part I care for such information significantly. I was seeking this particular details for a very long time. Thank you and finest of luck.

  50. I don’t even know how I ended up here, but I thought this post was great. I don’t know who that you are but definitely you are going to a famous blogger if you are not already Cheers!… Heya i’m for the very first time here. I identified this board and I discover It really valuable & it helped me out a whole lot. I hope to give something back and aid others like you aided me….

  51. Great – I should certainly pronounce, impressed with your website. I had no trouble navigating through all tabs and related information ended up being truly easy to do to access. I recently found what I hoped for before you know it in the least. Reasonably unusual. Is likely to appreciate it for those who add forums or something, web site theme . a tones way for your customer to communicate. Nice task.

  52. I’ve recently started a blog, the info you offer on this website has helped me greatly. Thank you for all of your time & work.

  53. This would be the proper weblog for anybody who wishes to discover this topic. You realize a terrific deal of its almost tough to argue along with you (not too When i would want…HaHa). You actually put a brand new spin using a subject thats been written about for decades. Fantastic stuff, just wonderful!

  54. With kileoskds everything that appears to be developing throughout this subject material, your opinions are generally rather stimulating. Nevertheless, I appologize, but I do not give credence to your whole theory, all be it exciting none the less. It seems to everybody that your remarks are not completely justified and in reality you are generally your self not completely certain of the point. In any case I did enjoy reading it.

  55. Thanks for sharing superb informations. Your site is very cool. I am impressed by the details that you’ve on this web site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found just the info I already searched everywhere and just couldn’t come across. What a great site.

  56. Thanks for sharing superb informations. Your web site is so cool. I’m impressed by the details that you¡¦ve on this site. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found simply the information I already searched all over the place and just could not come across. What a great web site.

  57. I believe this is gpdomnss one of the such a lot vital info for me. And i’m happy reading your article. But wanna statement on few common issues, The site taste is perfect, the articles is in reality great : D. Just right process, cheers

  58. Oh my goodness! an incredible write-up dude. Thanks a ton However We are experiencing concern with ur rss . Don’t know why Cannot enroll in it. Can there be any person obtaining identical rss dilemma? Anyone who knows kindly respond. Thnkx

  59. Have you ever thought about publishing an e-book or guest authoring on other blogs? I’ve a weblog based on exactly the same suggestions you discuss and would truly like to have you share some stories/information. I know my visitors would enjoy your function. In case you are even remotely interested, feel totally free to send me an e mail.

  60. “Generally I don’t read post on blogs, but I would like to say that this write-up very forced me to take a look at and do it! Your writing taste has been amazed me. Thank you, very great post.”

  61. Thank you for the sensible critique. Me and my neighbor were just preparing to do a little research on this. We got a grab a book from our local library but I think I learned more from this post. I’m very glad to see such fantastic info being shared freely out there.

  62. This will probably be the proper blog for anyone who desires to be familiar with this topic. You recognize a great deal of its practically not simple to argue on hand (not too I actually would want…HaHa). You actually put a new spin over a topic thats been written about for a long time. Great stuff, just excellent!

Leave a Reply to ajeetraina Cancel reply