Chapter 5. Advanced Docker

We've made it to the last chapter, and you've stuck with it until the end! In this chapter, we will be taking a look at some advanced Docker topics. Let's take a peek into what we will be covering in this chapter:

  • Scaling Docker
  • Using the discovery services
  • Debugging or troubleshooting Docker
  • Common issues and solutions
  • Various Docker APIs
  • Keeping your containers in check
  • Contributing to Docker
  • Advanced Docker networking

Scaling Docker

In this section, we will learn how to scale Docker. Earlier, in module 1, we looked at using Docker Compose to do our scaling. In this section, we will look at other technologies that we can utilize to do the scaling for us. We will take a look at two such technologies—one that you can use through the command line and the other two that can be used through a web interface.

  • Kubernetes: We have looked at another command line earlier to scale Docker—Docker Compose. There are other tools out there that you can use to scale your Docker environments from the command line. One such tool is Kubernetes:
    $ kubectl scale [--resource-version=version] [--current-replicas=count] --replicas=COUNT RESOURCE NAME
    
    $ kubectl scale --current-replicas=1 --replicas=2 Host Node
    

    You can find out more about it at http://kubernetes.io/v1.0/docs/user-guide/kubectl/kubectl_scale.html.

  • Mist.io: With Mist.io, you can perform all your Docker actions in this software, everything from adding your cloud environments to locally run Docker installations. You can then see all the machines or nodes that are on that host and check whether they are running or have been stopped. You can also view information about them such as any alerts that they may have as well as their usage. You can also scale environments within the web console as well. While Mist.io is free to use, there is a fee if you want to use their monitoring service. It does come with a free trial for 15 days though. Scaling is done just by selecting the node that you want to scale and entering a value to scale to, the rest is all done automatically for you.
  • Shipyard: When it comes to being able to scale easily, I am not sure there is an easier way than using Shipyard. Like Mist.io, you can easily scale nodes by using Shipyard. In Chapter 2, Shipyard, we saw how easy it was to do tasks such as scale running containers using Shipyard.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset