Git Product home page Git Product logo

docker-dind-cluster's Introduction

Docker DinD Cluster

A simple docker-compose.yml to demo/test things in a very simple swarm cluster (as usual for DinD, NOT RECOMMENDED FOR ANY SERIOUS USE).

$ docker-compose up -d
Creating dindcluster_docker-2_1
Creating dindcluster_docker-3_1
Creating dindcluster_docker-1_1
Creating dindcluster_cluster-store_1
Creating dindcluster_swarm_1

$ export DOCKER_HOST="tcp://$(docker inspect -f '{{ (index .NetworkSettings.Networks "dindcluster_default").IPAddress }}' dindcluster_swarm_1):2375"

$ docker info
Containers: 0
...
Nodes: 3
 6f788792e52b: docker-1:2375
  └ ID: QZPY:IG6T:DUFJ:V2RQ:RWEO:H3OJ:EGI5:DOWI:MH5B:WFV4:VEUR:SDZR
  ...
 a352ad1cfede: docker-2:2375
  └ ID: YO7R:HWND:UI4Z:SXHO:URQJ:HRKA:FPNY:C3K3:MSHK:U3WT:ZUKT:N2YS
  ...
 b1b2d917aab2: docker-3:2375
  └ ID: 4CGH:23EW:UC7L:FRTP:RSKD:ARZF:6BMR:IMWG:TN7B:Y6Y5:CXKK:QCFA
  ...
Plugins: 
...

$ docker run -it --rm alpine ls -l
total 52
drwxr-xr-x    2 root     root          4096 Jun  2 19:38 bin
drwxr-xr-x    5 root     root           380 Jun 18 16:59 dev
drwxr-xr-x    1 root     root          4096 Jun 18 16:59 etc
drwxr-xr-x    2 root     root          4096 Jun  2 19:38 home
drwxr-xr-x    5 root     root          4096 Jun  2 19:38 lib
lrwxrwxrwx    1 root     root            12 Jun  2 19:38 linuxrc -> /bin/busybox
drwxr-xr-x    5 root     root          4096 Jun  2 19:38 media
drwxr-xr-x    2 root     root          4096 Jun  2 19:38 mnt
dr-xr-xr-x  256 root     root             0 Jun 18 16:59 proc
drwx------    2 root     root          4096 Jun  2 19:38 root
drwxr-xr-x    2 root     root          4096 Jun  2 19:38 run
drwxr-xr-x    2 root     root          4096 Jun  2 19:38 sbin
drwxr-xr-x    2 root     root          4096 Jun  2 19:38 srv
dr-xr-xr-x   13 root     root             0 Jun 18 16:59 sys
drwxrwxrwt    2 root     root          4096 Jun  2 19:38 tmp
drwxr-xr-x    7 root     root          4096 Jun  2 19:38 usr
drwxr-xr-x   12 root     root          4096 Jun  2 19:38 var

docker-dind-cluster's People

Contributors

tianon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-dind-cluster's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.