Skip to content

Instantly share code, notes, and snippets.

View ajeetraina's full-sized avatar
💭
Whalify Yourself !

Ajeet Singh Raina, Docker Captain, ARM Innovator, ajeetraina

💭
Whalify Yourself !
View GitHub Profile
dell@dell-PowerEdge-R630:~$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker <none> 2dd09a452aed 3 weeks ago 105 MB
ajeetraina/scaleio-tb latest 45fa3963768c 5 weeks ago 465 MB
ajeetraina/scaleio-secondary-mdm latest f7a464cb2d06 5 weeks ago 465 MB
ajeetraina/scaleio-primary-mdm latest c9806a4f36ab 5 weeks ago 465 MB
ajeetraina/webmin latest 287b608ed127 5 weeks ago 406 MB
mysql latest d9124e6c552f 6 weeks ago 383 MB
ajeetraina/dell-oob-monitoring latest 20a961769f73 8 weeks ago 946 MB
ajeetraina/dell-oob-test1 latest 20a961769f73 8 weeks ago 946 MB
@ajeetraina
ajeetraina / gist:2caf478832599a2d6dc4ff31453606d2
Created February 1, 2017 17:32
Getting Started with Docker-Machine on Mac OS X Sierra
bash-3.2# docker version
Client:
Version: 1.13.0
API version: 1.25
Go version: go1.7.3
Git commit: 49bf474
Built: Wed Jan 18 16:20:26 2017
OS/Arch: darwin/amd64
Server:
@ajeetraina
ajeetraina / gist:3abc402f98a4f30173f0ac9902cd8407
Created February 1, 2017 17:45
Script to Setup 3 Master and 3 worker nodes
bash-3.2# vi swarm-mode-setup.sh
bash-3.2# chmod +x swarm-mode-setup.sh
bash-3.2# ./swarm-mode-setup.sh
======> Creating 3 manager machines ...
======> Creating manager1 machine ...
Running pre-create checks...
Creating machine...
(manager1) Copying /var/root/.docker/machine/cache/boot2docker.iso to /var/root/.docker/machine/machines/manager1/boot2docker.iso...
(manager1) Creating VirtualBox VM...
(manager1) Creating SSH key...
@ajeetraina
ajeetraina / gist:f6cd40c3a144269f7512edf836f24bdb
Last active February 3, 2017 19:39
Docker 1.13.0 on Apple Mac OS X Sierra
Running Multi-arch on Mac OS X
bash-3.2# docker run -d -v /prometheus.yml:/etc/prometheus/prometheus.yml ajeetraina/prometheus-armv7
Unable to find image 'ajeetraina/prometheus-armv7:latest' locally
latest: Pulling from ajeetraina/prometheus-armv7
125cacf2729a: Pull complete
a3ed95caeb02: Pull complete
441553076b27: Pull complete
cac898f3f2ae: Pull complete
@ajeetraina
ajeetraina / docker-compose.yml
Last active February 14, 2017 12:02
Implementing Secret Management on Docker 1.13.1 running Compose 1.11
version: "3.1"
services:
wordpress:
image: "wordpress:latest"
ports:
- "80:80"
networks:
- collabapp
secrets:
- source: "foo"
@ajeetraina
ajeetraina / gist:7f5ed7359d38653f0afa613a30994c71
Created February 16, 2017 13:02
Demonstrating Docker 1.13 Secrets Management using Docker Compose v3.1 File Format
version: "3.1"
services:
db:
image: "mysql:latest"
networks:
collabnet:
aliases: ["db"]
volumes:
- "db_data:/var/lib/mysql"
@ajeetraina
ajeetraina / docker-compose.yml
Last active February 16, 2017 17:35
Running Secrets for WordPress Application with Compose v3.1 File Format
version: "3.1"
services:
mysql:
image: "mysql"
networks:
test:
aliases: ["mysql"]
volumes:
- "db_data:/var/lib/mysql"
secrets:
@ajeetraina
ajeetraina / Secrets under Docker Swarm Mode
Last active February 16, 2017 19:20
Test-Drive Docker Secrets under Docker 1.13.1 Swarm Mode
root@master101:~# docker service ls
ID NAME MODE REPLICAS IMAGE
root@master101:~# docker secret ls
ID NAME CREATED UPDATED
Step-2:
@ajeetraina
ajeetraina / rexray.txt
Last active March 7, 2017 08:59
Installing DellEMC RexRay 0.8 Volume Plugin
Installing RexRay Plugin:
raina@master101:~$ docker plugin install rexray/gcepd \
> GCEPD_TAG=rexray
Plugin "rexray/gcepd" is requesting the following privileges:
- network: [host]
- mount: [/dev]
- allow-all-devices: [true]
- capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y
@ajeetraina
ajeetraina / portus_blog
Last active March 7, 2017 09:04
Building Docker Private Registry using Portus
Once you clone the Portus Repository, you can run the below command to build up Local private Registry:
[root@wiki Portus]# ./compose-setup.sh -e 10.94.214.207 -e 5000
###########
# WARNING #
###########
This deployment method is intended for testing/development purposes.
To deploy Portus on production please take a look at: http://port.us.org/documentation.html