Sunday, December 31, 2017

Docker Compose : Installation on Ubuntu

PreRequisite
  • Docker should be installed
Actual Installation
Its simple


Docker Compose : Why need it ?



Introduction

If you are using docker everywhere then , to get a typical docker application up and running you will need to run a lot of docker commands in correct order each time … just to start an environment  , which can be tedious.

Instead wouldn't it be easier to just run one command and get your environment up.

Common Use case launch a dev or test environment
For Example : If you want to install Hygieia , you can use just once command as described here http://www.capitalone.io/Hygieia/builddocker.html  

Saturday, December 23, 2017

Docker : Copying Image to Another Host

docker save

ls

Take it to host machine


Untar it ( just to check contents )


Each Layer will have 3 files ( no need to untar it )
  1. VERSION
  2. json
  3. layer.tar ( actual data )
 We can load tar files

 can check images now

Can run it