1. Home
  2. Training Library
  3. Containers
  4. Courses
  5. Getting started with Docker

Install Docker

Contents

keyboard_tab
Introduction
1
What is Docker?
PREVIEW2m 42s
Start course
Overview
Difficulty
Beginner
Duration
42m
Students
2974
Description

It's hardly an exaggeration to say that there hasn't been an innovation in app development and deployment over the past year or two that's been bigger than Docker. The open source platform for building, shipping, and running distributed applications in isolated virtual containers has literally changed the very fabric of the cloud. Thanks to Docker, software developers can reliably create and deploy applications with all their dependencies in Docker images that can be made available to anybody, and launched in seconds.

This introductory course, crafted by the expert Linux System Administrator David Clinton, will teach you everything you need to know to get started with Docker: What is the LXC software that it's built upon? How is it different from traditional virtualization technologies? How you can install and run it on your machine? By the end of this course, you'll have all the basic tools you'll need to run simple Docker applications.

Who should take this course

Being an introductory course, no previous knowledge of the software is needed. Nevertheless, you will definitely need at least some experience with the Linux Command Line Interface. Also, some familiarity with the Linux file system, kernel and networking basics might came in handy for some lectures.

Do you have questions on this course? Contact our cloud experts in our community forum.

Transcript

Hi, and welcome to CloudAcademy.com's video series on Docker, the development-oriented virtualization service. In this video, we're going to talk about how to install Docker on Ubuntu 14.04. It can be installed, of course, on many other platforms. This course will focus on Ubuntu 14.04. There may be minor changes between this installation and the installation you might experience on a different platform. There's plenty of documentation available on the internet.

By the way, in general you should not blindly use any command line interface commands that you see on the internet or on courses like this without understanding what you're doing. Occasionally there will be misguided individuals who will offer what seems to be good advice, but in fact could do serious damage to your system. So make sure you understand what you're doing before you do it no matter where you see the advice.

How to install Docker

The first thing we'll do is to make sure the dead Universe repository is enabled in sources.list.

That is, the Docker package lives in the Universe repository. So let's cd to /etc/apt, and then less sources.list. And just make sure that dead Universe, the Debian package repository, Universe as we can see there, is in fact enabled and available. So we'll quit from there. Before we do any installation we should update the repository lists.

Now that that's done, let's install docker.io. Why is it docker.io and not Docker? Because there actually happens to be an entirely unrelated package called Docker in the Debian repositories. So our Docker renamed their package docker.io.

We're now installed. We should make sure that the system has an accurate tracking of the paths to the key Docker program files. You should be able to access them from wherever you happen to be. One more command which is available, and in case you don't want to have to type to whole thing yourself, it is available in normal Ubuntu and Docker documentation sources. That's done. We've really nothing left to do besides actually attempt to enter our Docker instance, to see and to confirm that it actually is properly running.

How to run Docker and access your instance

To do that, we'll type sudo docker run. So sudo gives us the administrative rights. Docker tells the system that we are using a command that will work within the docker environment.

Run means to run something, -t is using the template Ubuntu, and what will run when we get into this template Ubuntu will be /bin/bash, that is a shell session within this instance. Let's see if it works. I'll enter my password. And it looks like we're in. Let's type ls, list.

And we do appear to be in the root directory of this instance, because we see all the regular directories that would be found in root that you normally would in a Linux environment. And for our purpose right now, we seem to be properly installed.

About the Author
Avatar
David Clinton
Linux SysAdmin
Students
10816
Courses
12
Learning Paths
4

David taught high school for twenty years, worked as a Linux system administrator for five years, and has been writing since he could hold a crayon between his fingers. His childhood bedroom wall has since been repainted.

Having worked directly with all kinds of technology, David derives great pleasure from completing projects that draw on as many tools from his toolkit as possible.

Besides being a Linux system administrator with a strong focus on virtualization and security tools, David writes technical documentation and user guides, and creates technology training videos.

His favorite technology tool is the one that should be just about ready for release tomorrow. Or Thursday.

Covered Topics