Introduction to Docker

Introduction to Docker

August 23, 2015 · docker, devops

Docker is a new open-source project that makes deployment of applications easier. The idea of this technology is very simple : “the application runs inside a software container. This container is acting like a mini Operating System”. Basics are very similar to Virtual machine : An OS is running independently of host’s OS. Networking is working using bridges… Docker is using 2 terms : image and container:

In addition, Docker have a lot of advantages. let’s discover them!

Docker{: .center-image }

1. Docker Advantages

2. How to Install Docker

For Ubuntu , run this command in your terminal :

curl -sSL https://get.docker.com/ | sh

For other OS , please refer to docker documentation

3. Verify Docker is installed correctly

Run this command in your terminal :

sudo docker run hello-world

4. Run docker as non-sudo user

Docker is used as root normally. But you can still use docker as non-root user. In order to do that, run this command in your terminal :

sudo usermod -aG docker $USER

5. But How to use Docker ?

In my next tutorial, we will manipulate docker containers. and I will show you how we connect a PhpMyAdmin to MySQL Server, both working on different docker containers on the same host.