Docker Kitematic for Linux

17 / Sep / 2015 by Sharad Aggarwal 9 comments

This blog post refers to a new addition in the Docker Family i.e. Kitematic. A lot of development is going around Docker Kitematic. Kitematic is basically a graphical User Interface that is used to manage docker containers. It integrates with the individual’s Docker hub account and one can manage and use his/her Docker repos using Kitematic. The project is still in its beta release and till date its only available for Mac OS and Windows, however, a lot of research is going around this project in the Linux community for its Linux release. Today, while reading about Kitematic, I came across a post to install and configure Kitematic on Linux here. So, I gave it a try and that is how things turned out for me.

Pull Image from the Docker Hub,

First of all, Kitematic image is to be pulled from Docker hub using following command:

[shell]docker pull jonadev95/kitematic-docker[/shell]

kitematic1-Screenshot from 2015-09-15 00:30:45

Now, run a Docker container from above image using below command. The command runs the container and creates several volumes to enable X11 forwarding on the Docker container so that we can get Kitematic console on our local machine.

[shell]docker run –net host –name kitematic \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY \
-v $HOME/.Xauthority:/root/.Xauthority \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /var/run/docker.sock:/var/run/docker.sock \
–privileged=true -t jonadev95/kitematic-docker[/shell]

kitematic2-Screenshot from 2015-09-15 00:31:47

After successful completion of running container from above command, a Kitematic console will pop up as shown in the below screenshot:

Kitematic4-Screenshot from 2015-09-15 00:48:46

Log in to Kitematic using Docker hub login credentials. After successful login, all the containers on localhost can be viewed and managed using this console.

Kitematic3-Screenshot from 2015-09-15 00:47:11

Using above console, one can avoid the requirement of being a command line ninja to use and adopt Docker and Docker Software can have a much wider target audience.

 

FOUND THIS USEFUL? SHARE IT

comments (9)

  1. rene

    Hi, I have installed your docker container on Debian 9 some container do work but yours gives an error at the end

    Any help would be great. I am pretty new to linux but want to playaround with Docker and kitematic seems to be a great tool.

    Reply
  2. steven

    hi, I installed Kitematic(ubuntu) as the step told, but it only shows a black window. And I don’t konw why.Thanks for any help!

    Reply
  3. Prayas

    Hey, thanks for the wonderful blog. However I started to have this problem after using new docker. I have attached the log below, do you know why?

    docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused “process_linux.go:359: container init caused \”rootfs_linux.go:54: mounting \\\”/home/centos/.Xauthority\\\” to rootfs \\\”/var/lib/docker/devicemapper/mnt/a1403a7dec1536ae090869a956eacf8566e702e54a616eca643eea07a645ae0e/rootfs\\\” at \\\”/var/lib/docker/devicemapper/mnt/a1403a7dec1536ae090869a956eacf8566e702e54a616eca643eea07a645ae0e/rootfs/root/.Xauthority\\\” caused \\\”not a directory\\\”\””
    : Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

    Reply
    1. Prayas

      Well I figured out the problem. When trying it my dev machine for some reason it did not create .Xauthority file, but after a while I reinstalled everything and it worked as a charm.

      Reply
  4. dariush najjarzade

    thank you Sharad Aggarwal
    works like a charm.

    i don’t understand why they didn’t publish a linux version….

    Reply
  5. danni

    Hi Sharad,
    Thanks for posting the instructions. I got an error like this
    Hi Sharad,
    I got an error like this
    solo:~ # docker run –net host –name kitematic \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=$DISPLAY \ -v $HOME/.Xauthority:/root/.Xauthority \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /var/run docker.sock:/var/run/docker.sock \ –privileged=true -t jonadev95/kitematic-docker
    Unable to find image ‘ -v:latest’ locally
    repository name component must match “[a-z0-9](?:-*[a-z0-9])*(?:[._][a-z0-9](?:-*[a-z0-9])*)*”

    Any Idea what went wrong?

    Thanks
    Danni

    Reply
  6. Joe

    Hi Sharad,
    Thanks for posting the instructions. I used Kitematic on MacOS but want to switch over to LInux. I was able to install everything and able to pull the image. However once I want to start it I get the error:

    : goexit
    Package: runtime
    File: asm_amd64.s@1696
    Error response from daemon: Cannot start container 665553909fcad37a1c6c1cfbdad16f6acc23f3a5a7898d2553c9f2e020fce53a: [8] System error: not a directory

    I am running an Arch derivative (Apricity) but this should not be the problem (hopefully) and Docker 1.9.1.

    Any Idea what went wrong?

    Thanks
    Joe

    Reply

Leave a Reply to Rob deMallac Cancel reply

Your email address will not be published. Required fields are marked *