developMENTALmadness: dockerPosts tagged with dockerhttp://www.developmentalmadness.com2016-03-05T19:30:04+00:00Mark J. MillerNesting Docker Containers? Stop!http://www.developmentalmadness.com/2016/03/05/nesting-docker-containers-stop/2016-03-05T19:30:04+00:002017-11-23T13:41:47+00:00Mark J. MillerIn a recent blog post I pointed out Docker is about microservices, and you should compose your containers instead of building monolithic ones. I was referring to adding tools and utilities for troubleshooting and whatnot. But today I have an even betterDocker: Configure Insecure Registry in Boot2Dockerhttp://www.developmentalmadness.com/2016/03/09/docker-configure-insecure-registry-in-boot2docker/2016-03-09T18:00:46+00:002017-11-23T13:41:47+00:00Mark J. MillerI gotta say there’s some confusing naming that goes on. Boot2Docker was originally a docker client that ran on OSX and Windows. That has been replaced by docker-machine. However, there is also a VirtualBox image (the default one) called Boot2Docker. InDocker: Permanently Mount a VirtualBox Shared Folderhttp://www.developmentalmadness.com/2016/03/05/docker-permanently-mount-a-virtualbox-shared-folder/2016-03-05T17:54:29+00:002017-11-23T13:41:47+00:00Mark J. MillerWhile this technique works for both Windows and OSX, most Windows developers I know don’t keep their source code in the Users folder on the system drive. Historically there have been too many problems:
The path used to start with C:\Documents and Settings
scala: Connecting to Postgres via Slick 3http://www.developmentalmadness.com/2016/02/23/scala-connecting-to-postgres-via-slick-3/2016-02-23T20:16:05+00:002017-11-23T13:41:47+00:00Mark J. MillerGot Slick working with Postgres this morning and I thought I’d just write it up before I forget. I’m assuming you already know how to create a new scala project that uses sbt for build and dependencies.
Environment Variables
For this post you’ll needWorking with Dockerhttp://www.developmentalmadness.com/2016/02/27/working-with-docker/2016-02-27T00:02:11+00:002017-11-23T13:41:47+00:00Mark J. MillerEvery developer has a workflow: how their environment is configured and how they access tools and resources. Personally, I have come to prefer lightweight tools and minimal setup.
I thought as I started working with Docker I would need to setup eitherDocker: Copy Arbitrary Files Between Docker Containershttp://www.developmentalmadness.com/2016/03/28/docker-copy-command-2/2016-03-28T23:34:18+00:002017-11-23T13:41:47+00:00Mark J. MillerDo you need to copy an arbitrary file from within a Docker container to your host file system? The docker cp command has got your back!
$ docker cp [container_id]:[container_path] [localpath]
So to copy a file named output.log to the current working