     end
   end
 
+  defp container_ensure_started(name) do
+    cmd = "docker"
+    args = ["start", name]
+    case System.cmd(cmd, args) do
+      {_, 0} -> :noop
+      {error, _} -> Mix.raise """
+        Could not start Docker container #{name}
+        Reason: #{error}
+        """
+    end
+  end
+
+  defp container_stop(name) do
+    cmd = "docker"
+    args = ["stop", name]
+    case System.cmd(cmd, args) do
+      {_, 0} -> :noop
+      {error, _} -> Mix.raise """
+        Could not stop Docker container #{name}
+        Reason: #{error}
+        """
+    end
+  end
+
   defp error_not_installed do
     Mix.raise """
     Docker is not installed on your machine.

    else
      Mix.raise "Docker provider expected artifact to exist at #{tar_file}"
    end
  end

  def shell(_pkg) do

  end

  defp build_paths(pkg) do


  @version "~> 1.12 or ~> 1.12.0-rc2"
  @config "~/.nerves/provider/docker"
  @tag "nervesproject/nerves_system_br:0.8.0"

  @sh "/bin/sh"
  @bash "/bin/bash"
