AWS – Update AMI through CF Template

Template - used to create single EC2 Instance with AutoScaling behind ELB. EC2 Instance provisioned ( take a note of AMI ). Using the same Cloud Formation Template I've update the stack with new AMI I did take screenshots of instance changes ( it is keeping the old instance alive till the new instance … Continue reading AWS – Update AMI through CF Template

Puppet – Hiera Error

As mentioned here: I was getting 400 error as puppet not able to find hiera value.. YAML files strictly follows indentation - I've copied and pasted values from different values which has placed 'TAB' instead of spaces. Find the tab and replace with spaces. #grep -P '/t' -r * <all hiera yaml files> On … Continue reading Puppet – Hiera Error

Docker – All commands hanging

For some reason after reboot of system - not able to run any of docker commands. [root@ip-172-31-35-29 run]# docker ps Cannot connect to the Docker daemon. Is the docker daemon running on this host? [root@ip-172-31-35-29 run]# [root@ip-172-31-35-29 run]# service docker start Starting docker:        .                                  [  OK  ] [root@ip-172-31-35-29 run]# docker ps ^C [root@ip-172-31-35-29 run]# docker … Continue reading Docker – All commands hanging

Docker – Some Commands

To run the docker with host port matching and with mounts #docker run -tiP -p -v : To get to console of running container #docker exec -ti /bin/bash To get the host ports which docker ports are bind to- check DOCKER chain Ref: [root@ip-172-31-35-29 ~]# docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} … Continue reading Docker – Some Commands