Next lesson playing in 5 seconds

  • Overview
  • Transcript

2.4 Kitematic Docker GUI

In this lesson, I'll show you how to use Kitematic, the GUI tool for Docker.

2.4 Kitematic Docker GUI

Hello everyone. This is Reggie Dawson. Welcome to the Docker for Deployment course for Tuts+. In this video, we're going to learn to use Kitematic, the graphical user interface of Docker. For the most part, if the image is configured properly, you can run Docker without the command line at all. This is especially useful for developers who aren't well-versed with Linux. Kitematic was installed as part of the Docker tools. Go ahead and click on the Kitematic shortcut to launch it. If our virtual machine we use for Docker is not running, Kitematic will launch it. This is similar to what happens when we launch our quick start terminal. When it launches, you will see a listing of recommended images we can install. We can also search for images from the search bar above the listing. Then to the left we have our list of containers. If we click on one of the containers, we can see its logs. To the right, we have a web preview which will show a preview of the web output of the container. If we launch our container and click on the web preview, will launch your preview in a browser window. Above the log window, we have buttons for start, restart, exec, and docs. Start and restart do just that, start a container and restart a container. Exec will launch a terminal in your container, and docs will open the link to the Docker docs. If we click on Settings, we are first brought to the General Settings tab. Here we have the container name and after that we have environment variables. We can also set environment variables from here as well. In a later video, I will also show you how to set environment variables from the command line. The last thing we have in the general tab is a button to delete our container. In the ports tab, we can see the IP address and the port set up on the container. And the volumes tab shows the mapping from the container to the host machine. Here we can change the mapping we have set up. Also depending on how the image is configured, you may or may not have access to map a volume with the container. If we look at the Apache container we created, you will notice we have a volume here. The Apache container has a volume because we created one when we used the run command. If we did not add this when we created our container, we would not have a volume listed here. This will also be the case if we tried to run this image directly from Kitematic. If you ever have a situation where you download a image with Kitematic and you don't have access to volumes, you can always run that same image from the terminal. We don't even have to specify a host folder if we don't want to, as we can always map it from Kitematic. The last tab is advanced and it is where we can configure the container to allow terminal access. At the bottom of Kitematic, on the left we have a link that says Docker CLI. This launches a PowerShell terminal connection to the Docker CLI. The bubble icon is a link to a page where we can submit issues to the Docker team. And the cog icon will allow us to specify whether shutting down Kitematic will close our VM. And again, to run an image, all we have to do is highlight it and click on the Start button. Installing an image through Kitematic is as simple as clicking on the New button and choosing an image. Before we choose an image, I want to show you how we can choose alternate versions through Kitematic. If we click on these three dots in the image listing, it will take us to an area where we can look at the image on the Docker Hub, and we can also look at the tags associated with this image. If we click on Tags, we can see all of the versions of this image that we can use. Now we're going to choose the hello world nginx image and click Create. This will download and run the container for us. After that, our preview will display and our container is running. We will get more into setting up a real nginx server in a later video. You should now understand how to use Kitematic. In the next video we will learn to further manage our images and our containers.

Back to the top