Docker Installation

Docker Installation on Ubuntu, CentOS and SuSE   Docker Installation on Ubuntu 1. Uninstall old docker, if there. #apt-get remove docker docker-engine docker.io 2. Update apt package index #apt-get update 3. Install supporting packages #apt-get install apt-transport-https ca-certificates curl software-properties-common 4. Add docker official GPG key and verify it #curl -fsSL https://download.docker.com/linux/ubuntu/gpg |apt-key add – #apt-key fingerprint 0EBFCD88 (Verify GPG Key. Given string should be matched) 5. Add stable REPO #add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” 6. Update apt index #apt-get

Docker volumes and storage drivers

Managing container and image data with Docker Volumes and Storage drivers Managing application data in running containers is one of the biggest challenges. We have to trade of between available volume types (and its associated storage drivers) with system performance. Volume’s contents exist outside the lifecycle of a given container. This is called data persistency. Below snapshot depicts the mechanism for persistent data in containers. Volumes are stored in a part of the host filesystem

Docker networking

Docker networking is one of the most crucial part to understand if you want to be master on docker. The concept is not that much complicated if you put your effort in right direction. It ease your life when you set up your container for talking to another container or expose externally. Docker engine interacts with Libnetwork which talks to one of the below high construct network drivers. Native Network Driver Native IPAM Driver Remote

Docker Interview Questions

1. What is Docker? Docker is an open source containerization platform designed to make it easier to create, deploy and run applications using containers. to ensure that your application works seamlessly in any environment be it development or production. 2. What are Docker Images? How to list all images? Docker images are special build images which contains all the necessary files library and packages. They are read only images used to make containers. Docker images