<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Derick Bailey</title>
    <description>The latest articles on DEV Community by Derick Bailey (@derickbailey).</description>
    <link>https://dev.to/derickbailey</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2952%2FarKwi7po.jpg</url>
      <title>DEV Community: Derick Bailey</title>
      <link>https://dev.to/derickbailey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/derickbailey"/>
    <language>en</language>
    <item>
      <title>10 Myths About Docker That Stop Developers Cold</title>
      <dc:creator>Derick Bailey</dc:creator>
      <pubDate>Fri, 10 Feb 2017 01:04:28 +0000</pubDate>
      <link>https://dev.to/derickbailey/10-myths-about-docker-that-stop-developers-cold</link>
      <guid>https://dev.to/derickbailey/10-myths-about-docker-that-stop-developers-cold</guid>
      <description>&lt;p&gt;I was discussing the growth of Docker and I kept hearing bits of information that didn't quite seem right in my mind.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“Docker is just inherently more enterprise”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;“it's only tentatively working on OSx, barely on Windows”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;“I'm not confident I can get it running locally without a bunch of hassle”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;… and more&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There are tiny bits of truth in these statements (see #3 and #5, below, for example), but tiny bits of truth often make it easy to overlook what isn't true, or is no longer true.&lt;/p&gt;

&lt;p&gt;And with articles that do nothing more than toss around jargon, require inordinate numbers of frameworks, and discuss how to manage 10thousand-billion requests per second with only 30thousand containers, automating 5thousand microservices hosted in 6hundred cloud based server instances…&lt;/p&gt;

&lt;p&gt;Well, it's easy to see why Docker has a grand mythology surrounding it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fderickbailey.com%2Fwp-content%2Fuploads%2F2015%2F10%2Fhidden-variable.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fderickbailey.com%2Fwp-content%2Fuploads%2F2015%2F10%2Fhidden-variable.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's unfortunate that the myths and misinformation persist, though. They rarely do more than stop developers from trying Docker.&lt;/p&gt;

&lt;p&gt;So, let's look at the most common myths – some that I've seen, and some I've previously believed – and try to find the truth in them, as well as solutions if there are any to be found.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #10: I can't &lt;em&gt;develop&lt;/em&gt; with Docker…
&lt;/h2&gt;

&lt;h3&gt;
  
  
  because I can't edit the Dockerfile
&lt;/h3&gt;

&lt;p&gt;As a developer, I have specific needs for tools and environment configuration, when working. I've also been told (rightfully so) that I can't edit the production Dockerfile to add the things I need.&lt;/p&gt;

&lt;p&gt;The production Docker image should be configured for production purposes, only.&lt;/p&gt;

&lt;p&gt;So, how do I handle my development needs, with Docker? If I can't edit the Dockerfile to add my tools and configuration, how am I supposed to develop apps in Docker, at all?&lt;/p&gt;

&lt;p&gt;I could copy &amp;amp; paste the production Dockerfile into my own, and then modify that file for my needs. But, we all know that duplication is the root of all evil. And, we all know that duplication is the root of all evil. Because duplication is the root of all evil.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Rather than duplicating the Dockerfile and potentially causing more problems, a better solution is to use the Docker model of building images from images.&lt;/p&gt;

&lt;p&gt;I'm already building my production application image from a base like “node:6”. So, why not create a “dev.dockerfile and have it build from my application's production image as its base?&lt;/p&gt;

&lt;h3&gt;
  
  
  Dockerfile
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="s"&gt; node:6&lt;/span&gt;

&lt;span class="c"&gt;# ... production configuration&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Production Build
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker build &lt;span class="nt"&gt;-t&lt;/span&gt; myapp &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  dev.dockerfile
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="s"&gt; myapp&lt;/span&gt;

&lt;span class="c"&gt;# ... development configuration&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Development Build
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker build &lt;span class="nt"&gt;-t&lt;/span&gt; myapp:dev &lt;span class="nt"&gt;-f&lt;/span&gt; dev.dockerfile &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now I can modify the dev.dockerfile to suit my development needs, knowing that it will use the exact configuration from the production image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to See a Dev Image in Action?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Check out the WatchMeCode episode on &lt;a href="https://sub.watchmecode.net/episode/creating-dev-container/" rel="noopener noreferrer"&gt;Creating a Development Container&lt;/a&gt; – part of the &lt;a href="https://sub.watchmecode.net/guides/build-node-apps-in-docker/" rel="noopener noreferrer"&gt;Guide to Building Node.js Apps in Docker&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #9: I can't see anything in this container
&lt;/h2&gt;

&lt;h3&gt;
  
  
  because I can't see into my container, at all!
&lt;/h3&gt;

&lt;p&gt;Docker is &lt;a href="https://derickbailey.com/2016/08/29/so-youre-saying-docker-isnt-a-virtual-machine/" rel="noopener noreferrer"&gt;application virtualization&lt;/a&gt; (containerization), not a full virtual machine to be used for general computing purposes.&lt;/p&gt;

&lt;p&gt;But a developer often needs to treat a container as if it were a virtual machine.&lt;/p&gt;

&lt;p&gt;I need to get logs (beyond the simple console output of my app), examine debug output, and ensure all of my needs are being met by the file and system changes I've put into the container.&lt;/p&gt;

&lt;p&gt;If a container isn't a virtual machine, though, how do I know what's going on? How do I see the files, the environment variables, and the other bits that I need, inside the container?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;While a Docker container may not technically be a full virtual machine, it does run a Linux distribution under the hood.&lt;/p&gt;

&lt;p&gt;Yes, this distribution may be a slimmed down, minimal distribution such as Alpine Linux, but it will still have basic shell access among other things. And having a Linux distribution as the base of a container gives me options for diving into the container.&lt;/p&gt;

&lt;p&gt;There are two basic methods of doing this, depending on the circumstances.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 1: Shell Into A Running Container&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If I have a container up and running already, I can use the “docker exec command to enter that container, with full shell access.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-it&lt;/span&gt; mycontainer /bin/sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once I've done this, I'll be inside the container as if I were shelled into any Linux distribution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 2: Run A Shell as the Container's Command&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If I don't have a container up and running – and can't get one running – I can run a new container from an image, with the Linux shell as the command to start.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker run &lt;span class="nt"&gt;-it&lt;/span&gt; myapp /bin/sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now I have a new container that runs with a shell, allowing me to look around, easily.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to See a Shell in Action?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Check out these two episodes from WatchMeCode's &lt;a href="https://sub.watchmecode.net/guides/learn-docker/" rel="noopener noreferrer"&gt;Guide to Learning Docker&lt;/a&gt; and &lt;a href="https://sub.watchmecode.net/guides/build-node-apps-in-docker/" rel="noopener noreferrer"&gt;Guide to Building Node.js Apps in Docker&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://sub.watchmecode.net/episode/docker-exec/" rel="noopener noreferrer"&gt;Docker Exec Commands in a Container&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://sub.watchmecode.net/episode/start-app-w-debugger/" rel="noopener noreferrer"&gt;Start an App w/ a Debugger Attached&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Myth #8: I have to code inside the Docker container?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  and I can't use my favorite editor?!
&lt;/h3&gt;

&lt;p&gt;When I first looked at a Docker container, running my Node.js code, I was excited about the possibilities.&lt;/p&gt;

&lt;p&gt;But that excitement quickly diminished as I wondered how I was supposed to move edited code into the container, after building an image.&lt;/p&gt;

&lt;p&gt;Was I supposed to re-build the image every time? That would be painfully slow… and not really an option.&lt;/p&gt;

&lt;p&gt;Ok, should I shell into the container to edit the code with vim?&lt;/p&gt;

&lt;p&gt;That works.&lt;/p&gt;

&lt;p&gt;But, if I wanted to use a better IDE / editor, I wouldn't be able to. I'd have to use something like vim all the time (and not my preferred version of vim).&lt;/p&gt;

&lt;p&gt;If I only have command-line / shell access to my container, how can I use my favorite editor?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Docker allows me to mount a folder from my host system into a target container, using the “volume mount options.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker run &lt;span class="nt"&gt;-v&lt;/span&gt; /dev/my-app:/var/app myapp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With this, the container's “/var/app folder will point to the local “/dev/my-app folder. Editing code in “/dev/my-app – with my favorite editor, of course – will change the code that the container sees and uses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to See Editing in a Mounted Volume, in Action?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Check out the WatchMeCode episode on &lt;a href="https://sub.watchmecode.net/episode/edit-code-container/" rel="noopener noreferrer"&gt;editing code in a container&lt;/a&gt; – part of the &lt;a href="https://sub.watchmecode.net/guides/build-node-apps-in-docker/" rel="noopener noreferrer"&gt;Guide to Building Node.js Apps in Docker&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #7: I have to use a command-line debugger…
&lt;/h2&gt;

&lt;h3&gt;
  
  
  and I &lt;em&gt;vastly&lt;/em&gt; prefer my IDE's debugger
&lt;/h3&gt;

&lt;p&gt;With the ability to edit code and have it reflected in a container, plus the ability to shell into a container, debugging code is only a step away.&lt;/p&gt;

&lt;p&gt;I only need to run the debugger in the container, after editing the code in question, right?&lt;/p&gt;

&lt;p&gt;While this is certainly true – I can use the command-line debugger of my programming language from inside a Docker container – it is not the only option.&lt;/p&gt;

&lt;p&gt;How is it possible, then, to use the debugger from my favorite IDE / editor, with code in a container?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The short answer is “remote debugging”.&lt;/p&gt;

&lt;p&gt;The long answer, however, is very dependent on which language and runtime is used for development.&lt;/p&gt;

&lt;p&gt;With Node.js, for example, I can do remote debugging over a TCP/IP port (5858). To debug through a Docker container, then, I only need to expose that port from my Docker image (the “dev.dockerfile image, of course).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="c"&gt;# ...&lt;/span&gt;

&lt;span class="k"&gt;EXPOSE&lt;/span&gt;&lt;span class="s"&gt; 5858&lt;/span&gt;

&lt;span class="c"&gt;# ...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With this port exposed, I can shell into the container and use any of the typical methods of starting the Node.js debugging service before attaching my favorite debugger.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to See Visual Studio Code Debug a Node.js Container?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Check out the WatchMeCode episode on &lt;a href="https://sub.watchmecode.net/episode/debug-container-vs-code/" rel="noopener noreferrer"&gt;debugging in a container with Visual Studio Code&lt;/a&gt; – part of the &lt;a href="https://sub.watchmecode.net/guides/build-node-apps-in-docker/" rel="noopener noreferrer"&gt;Guide to Building Node.js apps in Docker&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #6: I have to “docker run every time
&lt;/h2&gt;

&lt;h3&gt;
  
  
  and I can't remember all those “docker run options…
&lt;/h3&gt;

&lt;p&gt;There is no question that Docker has an enormous number of command-line options. Looking through the Docker help pages can be like reading an ancient tome of mythology from an extinct civilization.&lt;/p&gt;

&lt;p&gt;When it comes time to “run a container, then, it's no surprise that I'm often confused or downright frustrated, never getting the options right the first time.&lt;/p&gt;

&lt;p&gt;What's more, every call to “docker run creates a new container instance from an image.&lt;/p&gt;

&lt;p&gt;If I need a new container, this is great.&lt;/p&gt;

&lt;p&gt;If, however, I want to run a container that I had previously created, I'm not going to like the result of “docker run”… which is yet another new container instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I don't need to “docker run a new container every time I need one.&lt;/p&gt;

&lt;p&gt;Instead, I can “stop and “start the container in question.&lt;/p&gt;

&lt;p&gt;Doing this allows my container to be stopped and started, as expected.&lt;/p&gt;

&lt;p&gt;This also persists the state of the container between runs, meaning I will be able to restart a container where it left off. If I've modified any files in the container, those changes will be intact when the container is started again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to See Start and Stop in Action?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are many episodes of WatchMeCode's &lt;a href="https://sub.watchmecode.net/guides/learn-docker/" rel="noopener noreferrer"&gt;Guide to Learning Docker&lt;/a&gt; and &lt;a href="https://sub.watchmecode.net/guides/build-node-apps-in-docker/" rel="noopener noreferrer"&gt;Guide to Building Node.js Apps in Docker&lt;/a&gt; that use this technique.&lt;/p&gt;

&lt;p&gt;If you're new to the idea, however, I recommend watching the episode on &lt;a href="https://sub.watchmecode.net/episode/basic-image-and-container-management/" rel="noopener noreferrer"&gt;basic image and container management&lt;/a&gt;, which covers stopping and re-starting a single container instance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #5: Docker hardly works on macOS and Windows
&lt;/h2&gt;

&lt;h3&gt;
  
  
  and &lt;em&gt;I use&lt;/em&gt; a Mac / Windows
&lt;/h3&gt;

&lt;p&gt;Until a few months ago, this was largely true.&lt;/p&gt;

&lt;p&gt;In the past, Docker on Mac and Windows required the use of a full virtual machine with a “docker-machine utility and a layer of additional software proxying the work into / out of the vm.&lt;/p&gt;

&lt;p&gt;It worked… but it introduced a tremendous amount of overhead while limiting (or excluding) certain features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fortunately, Docker understands the need to support more than just Linux for a host operating system.&lt;/p&gt;

&lt;p&gt;In the second half of 2016, Docker released the official &lt;em&gt;Docker for Mac&lt;/em&gt; and &lt;em&gt;Docker for Windows&lt;/em&gt; software packages.&lt;/p&gt;

&lt;p&gt;This made it incredibly simple to install and use Docker on both of these operating systems. With regular updates, the features and functionality are nearly at parity with the Linux variant, as well. There's hardly a difference anymore, and I can't remember the last time I needed an option or feature that was not available in these versions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to Install Docker for Mac or Windows?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;WatchMeCode has &lt;em&gt;free&lt;/em&gt; installation episodes for both (as well as Ubuntu Linux!)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://sub.watchmecode.net/episode/install-docker-for-mac/" rel="noopener noreferrer"&gt;Installing Docker for Mac&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://sub.watchmecode.net/episode/install-docker-for-windows/" rel="noopener noreferrer"&gt;Installing Docker for Windows&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://sub.watchmecode.net/episode/install-docker-on-ubuntu/" rel="noopener noreferrer"&gt;Installing Docker on Ubuntu Linux&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Myth #4: Docker is command-line only
&lt;/h2&gt;

&lt;h3&gt;
  
  
  and I am &lt;em&gt;significantly&lt;/em&gt; more efficient with visual tools
&lt;/h3&gt;

&lt;p&gt;With it's birthplace in Linux, it's no surprise that Docker prefers command-line tooling.&lt;/p&gt;

&lt;p&gt;The abundance of commands and options, however, can be overwhelming. And for a developer that does not spend a regular amount of time in a console / terminal window, this can be a source of frustration and lost productivity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As the community around Docker grows, there are more and more tools that fit the preferences of more and more developers – including visual tools.&lt;/p&gt;

&lt;p&gt;Docker for Mac and Windows include basic integration with Kitematic, for example – a GUI for managing Docker images and containers, on my machine.&lt;/p&gt;

&lt;p&gt;With Kitematic, it's easy to search for images in Docker repositories, create containers and manage the various options of my installed and running containers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to See Kitematic in Action?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Check out &lt;a href="https://sub.watchmecode.net/episode/management-with-kitematic/" rel="noopener noreferrer"&gt;the Kitematic episode&lt;/a&gt; in WatchMeCode's &lt;a href="https://sub.watchmecode.net/guides/learn-docker/" rel="noopener noreferrer"&gt;Guide to Learning Docker&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #3: I can't run my database in a container.
&lt;/h2&gt;

&lt;h3&gt;
  
  
  It won't scale properly… &lt;em&gt;and I'll lose my data!&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;Containers are meant to be ephemeral – they should be destroyed and re-created as needed, without a moment's hesitation. But if I'm storing data from a database in my container, deleting the container will delete my data.&lt;/p&gt;

&lt;p&gt;Furthermore, database systems have very specific methods in which they can scale – both up (larger server) and out (more servers).&lt;/p&gt;

&lt;p&gt;Docker, it seems, is specialized in scaling out – creating more instances of things, when more processing power is required. While most database systems, on the other hand, require specific and specialized configuration and maintenance to scale out.&lt;/p&gt;

&lt;p&gt;So… yes… it's true. It's not a good idea to run a &lt;em&gt;production&lt;/em&gt; database in a Docker container.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;However, my first real success with Docker was with a database.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Oracle, to be specific.&lt;/p&gt;

&lt;p&gt;I had tried and failed to install Oracle into a virtual machine, for my development needs. I spent nearly 2 weeks (off and on) working on it, and never even came close.&lt;/p&gt;

&lt;p&gt;Within 30 minutes of learning that there is an Oracle XE image for Docker, however, I had Oracle up and running and working.&lt;/p&gt;

&lt;p&gt;In my &lt;em&gt;development&lt;/em&gt; environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Docker may not be great for running a database in a production environment, but it works wonders for development.&lt;/p&gt;

&lt;p&gt;I've been running MongoDB, MySQL, Oracle, Redis and other data / persistence systems for quite some time now, and I couldn't be happier about it.&lt;/p&gt;

&lt;p&gt;And, when it comes to the “ephemeral nature of a Docker container? Volume mounts.&lt;/p&gt;

&lt;p&gt;Like the code editing myth, a volume mount provides a convenient way of storing data on my local system and using it in a container.&lt;/p&gt;

&lt;p&gt;Now I can destroy a container and re-create it, as needed, knowing I'll pick up right where I left off.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #2: I can't use Docker on my project
&lt;/h2&gt;

&lt;h3&gt;
  
  
  because Docker is &lt;em&gt;all-or-nothing&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;When I first looked at Docker, I thought this was true – you either develop, debug, deploy and “devops everything with Docker (and two-hundreds extra tools and frameworks, to make it all work automagically), or you don't Docker at all.&lt;/p&gt;

&lt;p&gt;My experience with installing and running a database, as my first success with Docker, showed me otherwise.&lt;/p&gt;

&lt;p&gt;Any tool or technology that demands all-or-nothing should be re-evaluated with an extreme microscope. It's rare (beyond rare) that this is true. And when it is, it may not be something into which time and money should be invested.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Docker, like most development tools, can be added piece by piece.&lt;/p&gt;

&lt;p&gt;Start small.&lt;/p&gt;

&lt;p&gt;Run a development database in a container.&lt;/p&gt;

&lt;p&gt;Then build a single library inside a docker container and learn how it works.&lt;/p&gt;

&lt;p&gt;Build the next microservice – the one that only needs a few lines of code – in a container, after that.&lt;/p&gt;

&lt;p&gt;Move on to a larger project with multiple team members actively developing within it, from there.&lt;/p&gt;

&lt;p&gt;There is no need to go all-or-nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Myth #1: I won't benefit from Docker… At all…
&lt;/h2&gt;

&lt;h3&gt;
  
  
  because Docker is “enterprise”, and “devops”
&lt;/h3&gt;

&lt;p&gt;This was the single largest mental hurdle I had to remove, when I first looked at Docker.&lt;/p&gt;

&lt;p&gt;Docker, in my mind, was this grand thing that only the most advanced of teams with scalability concerns that I would never see, had to deal with.&lt;/p&gt;

&lt;p&gt;It's no surprise that I thought this way, either.&lt;/p&gt;

&lt;p&gt;When I look around at all the buzz and hype in the blog world and conference talks, I see nothing but “How Big-Name-Company Automated 10,000,000 Microservices with Docker, Kubernetes, and Shiny-New-Netflix-Scale-Toolset”.&lt;/p&gt;

&lt;p&gt;Docker may excel at “enterprise and “devops”, but the average, everyday developer – like you and I – can take advantage of what Docker has to offer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Give docker a try.&lt;/p&gt;

&lt;p&gt;Again, start small.&lt;/p&gt;

&lt;p&gt;I run a single virtual machine with 12GB of RAM, to host 3 web projects for a single client. It's a meager server, to say the least. But I'm looking at Docker – just plain old Docker, by itself – as a way to more effectively use that server.&lt;/p&gt;

&lt;p&gt;I have a second client – with a total of 5 part time developers (covering a total of less than 1 full time person worth of hours, every week) that is already using Docker to automate their build and deployment process.&lt;/p&gt;

&lt;p&gt;I build most of my open source libraries for Node.js apps, with Docker, at this point.&lt;/p&gt;

&lt;p&gt;I am finding new and better ways to manage the software and services that I need to install on my laptop, using Docker, every day.&lt;/p&gt;

&lt;p&gt;And remember …&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't Buy The Hype or Believe The Myths
&lt;/h2&gt;

&lt;p&gt;The mythology around Docker exists for good reason.&lt;/p&gt;

&lt;p&gt;It has, historically, been difficult to play with outside of Linux. And it is, to this day and moving forward, a tremendous benefit to enterprise and devops work.&lt;/p&gt;

&lt;p&gt;But the mythology, unfortunately, does little to help the developer that could benefit the most: You.&lt;/p&gt;

&lt;p&gt;If you find yourself looking at this list of myths, truths and solutions, still saying, “Yeah, but …”, I ask you to take some time and re-evaluate what you think about Docker, and why.&lt;/p&gt;

&lt;p&gt;If you still have questions or concerns about how a &lt;em&gt;development&lt;/em&gt; environment can take advantage of Docker, &lt;a href="https://derickbailey.com/about/" rel="noopener noreferrer"&gt;get in touch&lt;/a&gt;. I'd love to hear your questions and see if there's anything I can do to help.&lt;/p&gt;

&lt;p&gt;And if you want to learn the basics of Docker or how to develop apps within it, but don't know where to start, check out WatchMeCode's &lt;a href="https://sub.watchmecode.net/guides/learn-docker/" rel="noopener noreferrer"&gt;Guide to Learning Docker&lt;/a&gt; (from the ground up) and the &lt;a href="https://sub.watchmecode.net/guides/build-node-apps-in-docker/" rel="noopener noreferrer"&gt;Guide to Building Node.js Apps in Docker&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
