Skip to main content

Posts

Showing posts with the label Docker

A Guide to Docker Commands with Examples [Beginner's Guide]

Docker – ‘A better way to build apps’, as stated on its website, is an open-source platform for building apps and microservices. The catch here is the automated deployment of your app in a container, by OS level virtualization provided by Dockers. Dockers are better than VMs as you can do away with the additional costs for maintaining and starting the latter. By deploying your app and its dependencies (i.e. the pre-requisite apps for its proper functioning) in a container, your app becomes portable during all the phases of development and testing. Moreover, the isolated apps eliminate conflicts, enable team collaboration, and reduce the time-to-market. When Do You Need to Use a Docker? For replicating the environment on your server, while running your code locally on your laptop For Docker CI/CD during numerous development phases (dev/test/QA) For distributing your app’s OS with a team, and as a version control system. How Do You Setup a Docker Locally Download a Docke...

Install Docker on Linux [Beginners Guide]

Install Docker on Linux No matter your distribution of choice, you’ll need a 64-bit installation and a kernel at 3.10 or newer. Kernels older than 3.10 do not have the necessary features Docker requires to run containers; data loss and kernel panics occur frequently under certain conditions. Check your current Linux version with uname -r . You should see something like 3.10.[alphanumeric string].x86_64 . Debian and Ubuntu Docker runs on: Ubuntu Xenial 16.04 LTS Ubuntu Wily 15.10 Ubuntu Trusty 14.04 LTS Ubuntu Precise 12.04 LTS Debian testing stretch Debian 8.0 Jessie Debian 7.0 Wheezy (you must enable backports) Debian Wheezy If so, you need to enable backports (if not, ignore this section): Log into the system and open a terminal with sudo or root privileges (or run sudo -i from your terminal). Open /etc/apt/sources.list.d/backports.list with your favorite text editor (if the file does not exist, create it). Remove existing entries. ...