Skip to content
A basic dashboard for Docker that makes using Docker for local dev less fart-a-licious
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


obligatory screen shot

what is?

Foxy is a python-powered dashboard designed to make using docker for local development easier. While there are many other dashboards available for docker, they are all focused primarily on the needs of dev-ops personnel running a cluster. A developer using docker to create a sandbox production environment on her workstation has different needs. Foxy meets those needs by providing meaningful information on what containers are available on the system, what ports are available on the containers, links to open any web-accesible services in the container, and the means to start/stop containers from the dashboard. Ports are displayed along with a name indicating what service it's attached to, and may be grouped together in the dash. For example, the Hadoop ecosystem has many constitutent technologies, HDFS, Hadoop, Spark, Yarn, etc., each of which has one or more network ports used to interact with the service. Foxy can group all of the ports for a given service together on the display so you don't have to hunt around for them.

how to use?

associate meta-data with a docker file

The first thing you're going to need to do is associate metadata with the docker file you're planning on using to build your container. If you've already got a container(s), you can still use foxy to start, stop, or display the docker inspect report, but you won't be able to view the port resolution tables or have one-click access to available web services.

Foxy metadata is associated with the LABEL tag in a dockerfile. Below is an example of what this might look like for a containerized cloudera cdh stack:

      # group jupyter
"notebook" \
"jupyter" \
          foxy.6666.attribute="web" \
      # group HDFS
"NameNode" \
"HDFS" \
"NameNode HTTPS UI" \
"HDFS" \
          foxy.50470.attribute="web" \
"DataNode UI" \
"HDFS" \
          foxy.50075.attribute="web" \
      # group Yarn
"Resource Manager UI" \
"Yarn" \
          foxy.8088.attribute="web" \
"Node Manager" \
"Yarn" \
          foxy.8042.attribute="web" \
"Node Manager Localizer" \
"Yarn" \
      # group Spark
"Local Client Driver HTTP UI" \
"Spark" \
          foxy.4040.attribute="web" \
      # group Hadoop
"MapReduce JobHistory UI" \
"Hadoop" \
          foxy.19888.attribute="web" \
      # group ZooKeeper
"ZooKeeper Client" \
"ZooKeeper" \
      # group Hue
"Server" \
"Hue" \
      # group Oozie
"Server HTTP interface" \
"Oozie" \
      # group Other
"Linux Cockpit (todo)" \
"Other" \
"Dogtag Port" \
"Other" \
"ssh" \

In docker files, the \ character denotes a line-continuation and the # character denotes a commented line. Here's the breakdown of the metadata namespace:

  • foxy is how foxy knows what metadata to parse. This is why you're able to co-locate foxy metadata along with whatever else you might need/want to put into your container.
  • name is the name you want to associate with this port. You can call it whatever you want.
  • group the group you want to associate this port with. I haven't tested what happens if you try to associate a port with more than one group. It should work...
  • attribute allows you to associate a tag with a port. If the attribute is 'web', foxy will automatically render the label as a button whose target is whatever ip:port on your host the port has been associated with.

run foxy

Now that you've created your container, you'll need to fire up foxy. Create a virtual environment for python 2.7, activate it, then execute the setup script:

python install

Once you everything installed, start foxy by executing the following script:

python ../foxy/Web/

then navigate your favorite web browser to localhost:1701

use foxy

Foxy will present you with a dashboard with a nav bar on top and a set of panels below; each panel representing a docker container.

  • Containers that are currently running will be highlighted blue wheras stopped containers will be grey.
  • Below the container name will be a bar with three buttons. Here you can start/stop the container, view the ports table, or view the results of a docker inspect {container-name} command.
  • If you make an out-of-band change to your docker environment (eg. build another container, remove a container, etc), simply refresh the foxy dash and foxy will pick up the changes.

known issues

  • the search feature is currently in development and is non-functional.
  • if you create metadata for a given port number then don't expose that port, foxy freaks out. so, yeah, don't do that.
  • I'm pretty sure you can only associate one tag with a port.
  • None of this has been unit tested.
  • Currently you need to start foxy from within the ./foxy directory -- this is probably an artifact of my not having packaged this correctly yet...
  • when you click on the 'help' button nothing happens.
  • anyone anal about PEP-8 will probably freak out (rightfully) about the state of the code. if this is you, maybe don't do that. or better yet, make a pull request.
You can’t perform that action at this time.