This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step-1: apk update | |
Step-2: apk add 'py-pip==8.1.2-r0' | |
Step-3: pip install 'docker-compose==1.8.0' | |
Step-4: pip install --upgrade pip | |
Step-5: docker-compose -v | |
Step-6: docker-compose config --service | |
Step-7: docker-compose up -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contents: | |
1. Pre-requisite | |
2. Machine Setup | |
3. Setting up Master Node | |
4. Setting up Worker Nodes | |
5. Creating our First Service | |
6. Inspecting the Service | |
7. Scaling the Service | |
8. Creating a Nginx Service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dockerfile: | |
FROM ubuntu:16.04 | |
MAINTAINER Ajeet S Raina <[email protected]> | |
ENV MONGO_USER=mongodb \ | |
MONGO_DATA_DIR=/var/lib/mongodb \ | |
MONGO_LOG_DIR=/var/log/mongodb | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-11-25 Status Type Logical ID Status reason | |
15:37:47 UTC+0550 DELETE_COMPLETE AWS::EC2::Subnet PubSubnetAz1 | |
15:37:31 UTC+0550 DELETE_IN_PROGRESS AWS::EC2::SecurityGroup ExternalLoadBalancerSG | |
15:37:31 UTC+0550 DELETE_IN_PROGRESS AWS::EC2::Subnet PubSubnetAz2 | |
15:37:31 UTC+0550 DELETE_IN_PROGRESS AWS::EC2::Subnet PubSubnetAz1 | |
15:37:31 UTC+0550 DELETE_IN_PROGRESS AWS::EC2::VPCGatewayAttachment AttachGateway | |
15:37:29 UTC+0550 DELETE_COMPLETE AWS::ElasticLoadBalancing::LoadBalancer ExternalLoadBalancer | |
15:37:29 UTC+0550 DELETE_IN_PROGRESS AWS::ElasticLoadBalancing::LoadBalancer ExternalLoadBalancer | |
15:37:27 UTC+0550 DELETE_COMPLETE AWS::DynamoDB::Table SwarmDynDBTable | |
15:37:09 UTC+0550 DELETE_COMPLETE AWS::EC2::RouteTable RouteViaIgw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-11-26 Status Type Logical ID Status reason | |
07:53:36 UTC+0550 ROLLBACK_COMPLETE AWS::CloudFormation::Stack Docker | |
07:53:35 UTC+0550 DELETE_COMPLETE AWS::EC2::VPC Vpc | |
07:53:19 UTC+0550 DELETE_IN_PROGRESS AWS::EC2::VPC Vpc | |
07:53:18 UTC+0550 DELETE_COMPLETE AWS::EC2::Subnet PubSubnetAz1 | |
07:52:04 UTC+0550 DELETE_COMPLETE AWS::EC2::SecurityGroup ExternalLoadBalancerSG | |
07:51:58 UTC+0550 DELETE_COMPLETE AWS::EC2::InternetGateway InternetGateway | |
07:51:42 UTC+0550 DELETE_IN_PROGRESS AWS::EC2::InternetGateway InternetGateway | |
07:51:40 UTC+0550 DELETE_COMPLETE AWS::EC2::VPCGatewayAttachment AttachGateway | |
07:50:59 UTC+0550 DELETE_COMPLETE AWS::SQS::Queue SwarmSQS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@Master1:~# docker service scale redis=5 | |
redis scaled to 5 | |
root@Master1:~# docker service logs redis | |
redis.1.dd53bhhvvh2x@Node1 | 1:C 27 Nov 14:58:18.861 # Warning: no config file specifiredis-server /path/to/redis.conf | |
redis.1.dd53bhhvvh2x@Node1 | _._ | |
redis.1.dd53bhhvvh2x@Node1 | _.-``__ ''-._ | |
redis.1.dd53bhhvvh2x@Node1 | _.-`` `. `_. ''-._ Redis 3.2.5 (0000 | |
redis.1.dd53bhhvvh2x@Node1 | .-`` .-```. ```\/ _.,_ ''-._ | |
redis.1.dd53bhhvvh2x@Node1 | ( ' , .-` | `, ) Running in standa | |
redis.1.dd53bhhvvh2x@Node1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup: | |
====== | |
ScaleIO: | |
3 node cluster | |
Gateway: 10.94.214.180 (Master MDM) | |
SDC: 10.94..214.181 (Slave MDM) | |
TB: 10.94.214.179 ( Tie Breaker) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@mdm-2:~/test# docker run -it --rm --entrypoint /opt/discover.sh ajeetraina/testing2 | |
Nagios Core 4.0.8 | |
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors | |
Copyright (c) 1999-2009 Ethan Galstad | |
Last Modified: 08-12-2014 | |
License: GPL | |
Website: http://www.nagios.org | |
Reading configuration data... | |
Read main config file okay... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost ~]# curl -sSL https://test.docker.com/ | sh | |
+ sh -c 'sleep 3; yum -y -q install docker-engine' | |
Error: Package: docker-engine-1.13.0-0.4.rc4.el6.x86_64 (docker-testing-repo) | |
Requires: kernel-uek >= 4.1 | |
Installed: kernel-uek-3.8.13-16.2.1.el6uek.x86_64 (@anaconda-UEK3/6.5) | |
kernel-uek = 3.8.13-16.2.1.el6uek | |
kernel-uek = 3.8.13-16.2.1.el6uek | |
Installed: kernel-uek-3.8.13-118.15.1.el6uek.x86_64 (@public_ol6_UEKR3_latest) | |
kernel-uek = 3.8.13-118.15.1.el6uek | |
kernel-uek = 3.8.13-118.15.1.el6uek |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup: | |
ajeetsraina81@ucp-1:~$ sudo docker node ls | |
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS | |
8szgdxh310tkad373ourepch8 worker5 Ready Active | |
e2xjlg4610mmyym98sk91qu43 worker1 Ready Active | |
is52hxuxlrcclwd6hbujvflao worker2 Ready Active | |
nnnofsbqqbprgp4m4tw2oh2z1 worker4 Ready Active | |
sv2uuuy3spbh9oriue0mnyx83 * ucp-1 Ready Active Leader | |
sx1c598mlz6r6hg6zrbamrpsn worker3 Ready Active |