- The Unlikely Rise of Docker
- Why Okta Developers Love Docker
- Biggest Hurdles of Using It
The Unlikely Rise of Docker
In 2014, a startup called Docker started to gather an incredible amount of attention. The momentum started building in March 2013, when the companyâ€™s founder, Solomon Hykes, introduce the technology at the developer conference PyCon in a keynote presentation entitled â€œLightning Talk: The future of Linux Containers.â€ By the end of last year, the wellspring of excitement for Docker had reached a fever pitch â€“ with enterprises including Amazon, Google, Microsoft, HP, Dell, Red Hat, and VMware all clamoring to join forces with the company, which then had just 70 employees.
Basically, Docker makes containers. Its primary competitors are Google and CoreOS, the latter of which used to be closely allied with Docker.
Containers basically make it easier to manage cloud applications. Docker is an open source tool that system administrators and developers can use to create and run cloud apps.
Why Okta Developers Love Docker
Okta is a SaaS tool that gives enterprises a central portal for management of employee login credentials to other cloud accounts.
The companyâ€™s CEO, Todd McKinnon, who was previously the top engineer at Salesforce, says that Oktaâ€™s coders like Docker simply because they can write a program on a laptop; see if it works; and know that when they move into production, there wonâ€™t be any surprises.
There used to be a much bigger disconnect between development laptops and servers. Prior to Docker, â€œcode would run in a laptop and you’d think you got it working,â€ McKinnon explains, â€œbut then something is different on the server, not the right files or configuration or something, and it would break.”
What that essentially meant was a huge amount of wasted time â€“ hours spent trying to determine what was lost in translation between the laptop and the server.
Developers are obviously enthusiastic about not having to deal with something as mundane as configuration problems. They also like that Hykes took a standard Linux feature and made it into a cloud service â€“ a brilliant solution for a persistent headache.
Now many developers use Docker as an integral part of their process.
Biggest Hurdles of Using It
Here are some of the biggest stumbling blocks of using Docker.
A common one is to place the files and configurations within the container. You might build your Nginx configurations into the Dockerfile, for instance. If you do that, and you want to make a change to your virtual hosts, you will have to rerun the whole sequence, says Chris (outrunthewolf on Twitter and Stack Overflow).
â€œConsider your application carefully, mount your files and configurations to the container, and maintain their relative and locations with your [D]ockerfile,â€ Chris advises. â€œ[T]his gives you the ability to change data on your local system easily, affecting your containers immediately.â€
Slowdown of the building process
Donâ€™t obsess over the Dockerfile. Initially, Chris focused on the Dockerfile, planning to build and run it demonized right away. This is not the way to go. Problems that can arise are vast, ranging from false mount points to MySQL errors.
To solve this issue, scaffold with the Dockerfile but run it interactively â€“ engaging with it directly. Once you know there arenâ€™t any errors, commit the container and update the version tags. The Dockerfile can then be set aside for later use.
You want to be able to run services in isolation, which is one of the primary strengths of Docker. Donâ€™t neglect to create separation when running a stack. One container should run MySQL while another runs Apache. You can then connect the containers, but itâ€™s adaptable. You can always switch out the Apache container for a Nginx one, for instance.
Lack of knowledge
You really want to read the documentation, says Chris â€“ especially the CLI information. â€œToo often did I miss a trick, or want for something that I thought didnâ€™t exist,â€ he says. â€œDocker has some very helpful documentation, and itâ€™s really quick to get a good understanding of what is possible.â€
Itâ€™s not a cure-all
You may think that Docker is the right choice for every situation, but thatâ€™s not the case. Consider whether itâ€™s the practical choice for your given scenario.
Use the source code
Docker is still in rapid development, and your package manager might not keep you completely abreast. â€œBuild it from source, itâ€™s good practice,â€ says Chris. â€œ[Y]ou can update regularly without hassle, and you might want to build it with certain parameters you wouldnâ€™t normally have the option to use.â€
Checking out something new can always get a little complicated. However, this problem is essentially solved by a Cloud Hosting service that makes life easier for users of Docker and other development environments. At Atlantic.Net, our CloudÂ Server options are up in 30 seconds, running on solid-state drives through international data centers.
Cloud hosting services are only one of our offerings – we also offer dedicated hosting, managed hosting, and HIPAA-compliant hosting.