SlideShare a Scribd company logo
1 of 27
FIWARE Docker Container Service (FDCS)
Introduction
Kenneth Nagin
IBM
nagin@il.ibm.com
Multi-Tenant Swarm
….
client
client
docker-cli
docker-compose
docker api,
any tool based
on
docker-api
Docker Container Service
Keystone
Keystone api
external ip external ip
NFS
Docker Container Service (FDCS)
Key-Value
Storage
Container
Multi-Tenant Isolation and Multi-Tenant Name Scoping
Tenant 1
Docker Container Service
Keystone
Tenant 2 Tenant 3
Multi-Tenant Swarm
……
Multi-Tenant Isolation
each tenant only sees its own containers
Tenant 2: create, run and view containers
Tenant 1: create, run, and view container
Tenant 1: only see’s its containers
Multi-Tenant Isolation
each tenant can only manage its own containers
Tenant 1: not allowed to remove container created by tenant 2
Tenant 1: remove’s its containers
Tenant 1 and Tenant 2 view after rm attempts
Multi-Tenant Name Scoping
tenant containers with same name
Tenant 2: uses same container
Tenant 1: creates, runs, and views a named container
Tenant members share resources
Tenant members remove tenant 2 containers
docker-user-2 and docker-user-3 are both members of docker-tenant-2
Tenant member attaches to running containers
User defined overlay networks and nfs volumes
Multi-Tenant Isolation and Multi-Tenant Name Scoping
Tenant 1
Docker Container Service
Keystone
Tenant 2 Tenant 3
nfs
Multi-Tenant Swarm
……
> docker volume create –d nfs myvolume –name myvolu
User defined overlay networks and nfs volumes
> Docker network create –d overlay isolated_nw
Docker-compose version 2
User defined networks and volume support
docker-compose.yml: orion + mongodb
v1: links and volume_from
mongodata:
image: mongo:3.2
volumes:
- /data/db
command: /bin/echo "Data-only for mongo"
mongo:
image: mongo:3.2
volumes_from:
- mongodata
command: --nojournal
orion:
image: fiware/orion
links:
- mongo
ports:
- "1026"
command: -dbhost mongo
docker-compose.yml: orion + mongodb
v2: user defined overlay networks and NFS volumesversion: '2'
networks:
front:
driver: "overlay"
volumes:
mongodata:
# external: true
driver: "nfs"
services:
mongo:
image: mongo:3.2
command: --nojournal
networks:
- front
volumes:
- mongodata:/data/db
orion:
image: fiware/orion
ports:
- "1026"
networks:
- front
command: -dbhost mongo
Use docker compose to bring up service
/orion$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
/orion$ docker volume ls
DRIVER VOLUME NAME
/orion$ docker network ls
NETWORK ID NAME DRIVER
/orion$ docker-compose up -d
Creating network "orion_front" with driver "overlay"
Creating volume "orion_mongodata" with nfs driver
Creating orion_orion_1
Creating orion_mongo_1
Service up and running on cluster
~/orion$ docker-compose ps
Name Command State Ports
---------------------------------------------------------------------------------------
orion_mongo_1 /entrypoint.sh --nojournal Up 27017/tcp
orion_orion_1 /usr/bin/contextBroker -fg ... Up 130.206.119.32:32768->1026/tcp
:~/orion$ docker ps
CONTAINER ID IMAGE STATUS NAMES
40e14092eddf fiware/orion Up 8 minutes docker-host-3/orion_orion_1
59a647da904e mongo:3.2 Up 8 minutes docker-host-2/orion_mongo_1
User defined volume and overlay network created
/orion$ docker volume ls
DRIVER VOLUME NAME
nfs orion_mongodata
nfs orion_mongodata
/orion$ docker network ls
NETWORK ID NAME DRIVER
1b651ad80f4b orion_front overlay
/orion$ docker network inspect orion_front
[
{
"Name": "orion_front",
"Id":
"1b651ad80f4b9567626faba94accdf74aa77217d91258105525d56a2d5907426",
"Scope": "global",
"Driver": "overlay",
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1/24"
}
]
},
"Containers": {
"c67fbd499135cf20aa301a5e9c9b8611330a64cf1ac5315ca47fde5b5a4ecf50": {
"Name": "orion_orion_1",
"EndpointID":
"4d5111cb9303e61bf28f3a5209e788d2e33c9d3f1a5c29ebdfcce8a1503ddc9e",
"MacAddress": "02:42:0a:00:00:02",
"IPv4Address": "10.0.0.2/24",
"IPv6Address": ""
},
"cba077da484f4b5f9ff6b47721810e7660dce5979ed84636573626f28d97d533": {
"Name": "orion_mongo_1",
"EndpointID":
"fde05d125ba6971218eff9b5092877f7c6e47b8baaa67d156be83957b43baeab",
"MacAddress": "02:42:0a:00:00:03",
"IPv4Address": "10.0.0.3/24",
"IPv6Address": ""
}
},
"Options": {}
}
]
/orion$ port=$(docker-compose port orion 1026)
/orion$ curl $port/v2/entities
[]
/orion$ curl ${port}/v2/entities -s -S --header 'Content-
Type: application/json' -X POST -d @- <<EOF
{
"id": "Room2",
"type": "Room",
"temperature": {
"value": 23,
"type": "Number"
},
"pressure": {
"value": 720,
"type": "Number"
}
}
EOF
/orion$ curl $port/v2/entities
[{"id":"Room2","type":"Room","pressure":{"type":"Number"
,"value":720,"metadata":{}},"temperature":{"type":"Number
","value":23,"metadata":{}}}]
Bring down the application
~/orion$ docker-compose down
Stopping orion_mongo_1 ... done
Stopping orion_orion_1 ... done
Removing orion_mongo_1 ... done
Removing orion_orion_1 ... done
Removing network orion_front
~/orion$ docker network ls
NETWORK ID NAME DRIVER
~/orion$ docker volume ls
DRIVER VOLUME NAME
nfs orion_mongodata
nfs orion_mongodata
Bring the app up again
~/orion$ docker-compose up -d
Creating network "orion_front" with driver "overlay"
Creating volume "orion_mongodata" with nfs driver
Creating orion_orion_1
Creating orion_mongo_1
docker-user-1@rcc-hrl-kvg-558:~/orion$ docker network ls
NETWORK ID NAME DRIVER
d92818b2e5c0 orion_front overlay
~/orion$ port=$(docker-compose port orion 1026)
~/orion$ curl $port/v2/entities
[{"id":"Room2","type":"Room","pressure":{"type":"Number","value":720.000000},"temperature":{"type":"Number
FIWARE Docker Container Service (FDCS)
online documentation
•readthedocs: http://fiware-docker-container-service.readthedocs.org/en/latest/
•FIWARE catalogue: http://catalogue.fiware.org/enablers/docker/
Docker-compose: Scale web app
docker-compose
scale web 5
docker-compose.yml:
web:
image: nagin/dockercomposedemo_web:v2
volumes:
- /code
links:
- redis
expose:
- "5000"
redis:
image: redis
lb:
image: tutum/haproxy
links:
- web
ports:
- "80"
environment:
- BACKEND_PORT=5000
- BALANCE=roundrobin
docker-compose: bring up and access web app
docker-compose: bring up and access web app
docker-compose: bring up and access web app
docker-compose: bring up and access web app
Limitations
• Not allowed to reference docker host file system with –volume <host>:<container>
– common means of configuring a container or doing backups
• Currently only experimental service running on FIWARE Lab (not for public)

More Related Content

What's hot

Isolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersIsolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersVenkat Raman
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commandsHanan Nmr
 
Basic command ppt
Basic command pptBasic command ppt
Basic command pptRohit Kumar
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Linelifeit
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands Raghav Arora
 
Unix Shell Script
Unix Shell ScriptUnix Shell Script
Unix Shell Scriptstudent
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commandsswtjerin4u
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformaticsBonnie Ng
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsYusuf Felly
 
Linux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.comLinux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.comStavros Skamagkis
 
Unix Shell Scripting
Unix Shell ScriptingUnix Shell Scripting
Unix Shell ScriptingMustafa Qasim
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell scriptBhavesh Padharia
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commandstmavroidis
 

What's hot (20)

Isolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersIsolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux Containers
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commands
 
Unix tutorial-08
Unix tutorial-08Unix tutorial-08
Unix tutorial-08
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
 
Shell programming
Shell programmingShell programming
Shell programming
 
Linux file commands
Linux file commandsLinux file commands
Linux file commands
 
Unix Shell Script
Unix Shell ScriptUnix Shell Script
Unix Shell Script
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu Commands
 
Linux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.comLinux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.com
 
Linux And perl
Linux And perlLinux And perl
Linux And perl
 
Unix Shell Scripting
Unix Shell ScriptingUnix Shell Scripting
Unix Shell Scripting
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Rhel3
Rhel3Rhel3
Rhel3
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
 

Viewers also liked

Stateful Containers: Flocker on CoreOS
Stateful Containers: Flocker on CoreOSStateful Containers: Flocker on CoreOS
Stateful Containers: Flocker on CoreOSClusterHQ
 
Testing Ansible with Jenkins and Docker
Testing Ansible with Jenkins and DockerTesting Ansible with Jenkins and Docker
Testing Ansible with Jenkins and DockerDennis Rowe
 
Con8828 justifying and planning a successful identity management upgrade final
Con8828 justifying and planning a successful identity management upgrade finalCon8828 justifying and planning a successful identity management upgrade final
Con8828 justifying and planning a successful identity management upgrade finalOracleIDM
 
Índice de confiança do empresário industrial
Índice de confiança do empresário industrialÍndice de confiança do empresário industrial
Índice de confiança do empresário industrialFGV-EAESP
 
Kudavi 1.24.2016
Kudavi 1.24.2016Kudavi 1.24.2016
Kudavi 1.24.2016Tom Currier
 
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTARMARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTARRezha Purbaya
 
Tourism English 10
Tourism English 10Tourism English 10
Tourism English 10Les Davy
 
Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...
Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...
Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...Miguel Muñoz de Morales
 
Brazil in African agriculture - Lídia Cabral
Brazil in African agriculture - Lídia CabralBrazil in African agriculture - Lídia Cabral
Brazil in African agriculture - Lídia Cabralfutureagricultures
 
Digitális költések okosan
Digitális költések okosanDigitális költések okosan
Digitális költések okosanEdit Ditte Szabó
 
Компенсационный план Традо Клуба 2016 год
Компенсационный план Традо Клуба 2016 годКомпенсационный план Традо Клуба 2016 год
Компенсационный план Традо Клуба 2016 годЕлена Шальнова
 
Decisão de Celso de Mello de manter Moreira Franco
Decisão de Celso de Mello de manter Moreira FrancoDecisão de Celso de Mello de manter Moreira Franco
Decisão de Celso de Mello de manter Moreira FrancoMiguel Rosario
 

Viewers also liked (20)

Stateful Containers: Flocker on CoreOS
Stateful Containers: Flocker on CoreOSStateful Containers: Flocker on CoreOS
Stateful Containers: Flocker on CoreOS
 
Testing Ansible with Jenkins and Docker
Testing Ansible with Jenkins and DockerTesting Ansible with Jenkins and Docker
Testing Ansible with Jenkins and Docker
 
Con8828 justifying and planning a successful identity management upgrade final
Con8828 justifying and planning a successful identity management upgrade finalCon8828 justifying and planning a successful identity management upgrade final
Con8828 justifying and planning a successful identity management upgrade final
 
Índice de confiança do empresário industrial
Índice de confiança do empresário industrialÍndice de confiança do empresário industrial
Índice de confiança do empresário industrial
 
MAHALAKSHMI
MAHALAKSHMIMAHALAKSHMI
MAHALAKSHMI
 
118773548 communication
118773548 communication118773548 communication
118773548 communication
 
Intel
IntelIntel
Intel
 
Kudavi 1.24.2016
Kudavi 1.24.2016Kudavi 1.24.2016
Kudavi 1.24.2016
 
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTARMARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
 
Tourism English 10
Tourism English 10Tourism English 10
Tourism English 10
 
Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...
Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...
Teatro de la sensacion taller de expresion integral creatividad y desarrollo ...
 
長野市地域きらめき隊 2016.02.02
長野市地域きらめき隊 2016.02.02長野市地域きらめき隊 2016.02.02
長野市地域きらめき隊 2016.02.02
 
Brazil in African agriculture - Lídia Cabral
Brazil in African agriculture - Lídia CabralBrazil in African agriculture - Lídia Cabral
Brazil in African agriculture - Lídia Cabral
 
Digitális költések okosan
Digitális költések okosanDigitális költések okosan
Digitális költések okosan
 
Компенсационный план Традо Клуба 2016 год
Компенсационный план Традо Клуба 2016 годКомпенсационный план Традо Клуба 2016 год
Компенсационный план Традо Клуба 2016 год
 
коронавирусы
коронавирусыкоронавирусы
коронавирусы
 
Lenovo all in one
Lenovo all in oneLenovo all in one
Lenovo all in one
 
Decisão de Celso de Mello de manter Moreira Franco
Decisão de Celso de Mello de manter Moreira FrancoDecisão de Celso de Mello de manter Moreira Franco
Decisão de Celso de Mello de manter Moreira Franco
 
Стань членом Клуба Традо!
Стань членом Клуба Традо!Стань членом Клуба Традо!
Стань членом Клуба Традо!
 
Earth art
Earth artEarth art
Earth art
 

Similar to Fiware docker container service multi tenant isolation and user defined networks and volumes

Docker container management
Docker container managementDocker container management
Docker container managementKarol Kreft
 
手把手帶你學Docker 03042017
手把手帶你學Docker 03042017手把手帶你學Docker 03042017
手把手帶你學Docker 03042017Paul Chao
 
The whale, the container, and the ocean
The whale, the container, and the oceanThe whale, the container, and the ocean
The whale, the container, and the oceanNick Palenchar
 
Docker advance topic
Docker advance topicDocker advance topic
Docker advance topicKalkey
 
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruDeploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruSwaminathan Vetri
 
時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇Philip Zheng
 
Docker - from development to production (PHPNW 2017-09-05)
Docker - from development to production (PHPNW 2017-09-05)Docker - from development to production (PHPNW 2017-09-05)
Docker - from development to production (PHPNW 2017-09-05)Toby Griffiths
 
Docker workshop 0507 Taichung
Docker workshop 0507 Taichung Docker workshop 0507 Taichung
Docker workshop 0507 Taichung Paul Chao
 
手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇Philip Zheng
 
Docker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini AnandDocker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini AnandPRIYADARSHINI ANAND
 
Introduction to Docker - Learning containerization XP conference 2016
Introduction to Docker - Learning containerization  XP conference 2016Introduction to Docker - Learning containerization  XP conference 2016
Introduction to Docker - Learning containerization XP conference 2016XP Conference India
 
Running the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker ContainerRunning the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker ContainerGuido Schmutz
 
Rooting Out Root: User namespaces in Docker
Rooting Out Root: User namespaces in DockerRooting Out Root: User namespaces in Docker
Rooting Out Root: User namespaces in DockerPhil Estes
 
Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3Binary Studio
 
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Jonas Rosland
 
Beyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with PuppetBeyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with Puppetlutter
 
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Ben Hall
 
Docker Introductory workshop
Docker Introductory workshopDocker Introductory workshop
Docker Introductory workshopRuncy Oommen
 

Similar to Fiware docker container service multi tenant isolation and user defined networks and volumes (20)

Docker container management
Docker container managementDocker container management
Docker container management
 
Docker advance1
Docker advance1Docker advance1
Docker advance1
 
手把手帶你學Docker 03042017
手把手帶你學Docker 03042017手把手帶你學Docker 03042017
手把手帶你學Docker 03042017
 
The whale, the container, and the ocean
The whale, the container, and the oceanThe whale, the container, and the ocean
The whale, the container, and the ocean
 
Docker advance topic
Docker advance topicDocker advance topic
Docker advance topic
 
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruDeploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
 
時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇
 
Docker - from development to production (PHPNW 2017-09-05)
Docker - from development to production (PHPNW 2017-09-05)Docker - from development to production (PHPNW 2017-09-05)
Docker - from development to production (PHPNW 2017-09-05)
 
Docker workshop 0507 Taichung
Docker workshop 0507 Taichung Docker workshop 0507 Taichung
Docker workshop 0507 Taichung
 
手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇手把手帶你學 Docker 入門篇
手把手帶你學 Docker 入門篇
 
Docker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini AnandDocker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini Anand
 
Docker practice
Docker practiceDocker practice
Docker practice
 
Introduction to Docker - Learning containerization XP conference 2016
Introduction to Docker - Learning containerization  XP conference 2016Introduction to Docker - Learning containerization  XP conference 2016
Introduction to Docker - Learning containerization XP conference 2016
 
Running the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker ContainerRunning the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker Container
 
Rooting Out Root: User namespaces in Docker
Rooting Out Root: User namespaces in DockerRooting Out Root: User namespaces in Docker
Rooting Out Root: User namespaces in Docker
 
Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3
 
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015
 
Beyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with PuppetBeyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with Puppet
 
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)
 
Docker Introductory workshop
Docker Introductory workshopDocker Introductory workshop
Docker Introductory workshop
 

Recently uploaded

Guwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book now
Guwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book nowGuwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book now
Guwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book nowapshanarani255
 
9891550660 Call Girls In Noida Sector 62 Short 1500 Night 6000
9891550660 Call Girls In Noida Sector 62 Short 1500 Night 60009891550660 Call Girls In Noida Sector 62 Short 1500 Night 6000
9891550660 Call Girls In Noida Sector 62 Short 1500 Night 6000teencall080
 
BADDI CALL GIRL 92628/71154 BADDI CALL G
BADDI CALL GIRL 92628/71154 BADDI CALL GBADDI CALL GIRL 92628/71154 BADDI CALL G
BADDI CALL GIRL 92628/71154 BADDI CALL GNiteshKumar82226
 
Call Girls | 😏💦 03274100048 | Call Girls Near Me
Call Girls | 😏💦 03274100048 | Call Girls Near MeCall Girls | 😏💦 03274100048 | Call Girls Near Me
Call Girls | 😏💦 03274100048 | Call Girls Near MeIfra Zohaib
 
+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...
+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...
+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...teencall080
 
Indore ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book now
Indore  ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book nowIndore  ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book now
Indore ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book nowapshanarani255
 
Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...
Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...
Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...aakahthapa70
 
Mysore Call girl service 6289102337 Mysore escort service
Mysore Call girl service 6289102337 Mysore escort serviceMysore Call girl service 6289102337 Mysore escort service
Mysore Call girl service 6289102337 Mysore escort servicemaheshsingh64440
 
9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Servicenishacall1
 
Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7Sana Rajpoot
 
Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7Sana Rajpoot
 
CALL GIRLS 9999288940 women seeking men Locanto No Advance North Goa
CALL GIRLS 9999288940 women seeking men Locanto No Advance North GoaCALL GIRLS 9999288940 women seeking men Locanto No Advance North Goa
CALL GIRLS 9999288940 women seeking men Locanto No Advance North Goadelhincr993
 
Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...
Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...
Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...Sheetaleventcompany
 
Call Girls in Luxus Grand Hotel | 💋 03274100048
Call Girls in Luxus Grand Hotel | 💋 03274100048Call Girls in Luxus Grand Hotel | 💋 03274100048
Call Girls in Luxus Grand Hotel | 💋 03274100048Ifra Zohaib
 
Best VIP Call Girls Noida Sector 24 Call Me: 8700611579
Best VIP Call Girls Noida Sector 24 Call Me: 8700611579Best VIP Call Girls Noida Sector 24 Call Me: 8700611579
Best VIP Call Girls Noida Sector 24 Call Me: 8700611579diyaspanoida
 
Call Girls in Rawalpindi | 🍆💦 03280288848
Call Girls in Rawalpindi | 🍆💦 03280288848Call Girls in Rawalpindi | 🍆💦 03280288848
Call Girls in Rawalpindi | 🍆💦 03280288848Ifra Zohaib
 
Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...
Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...
Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...riyadelhic riyadelhic
 
Radhika Call Girls In Jaipur 9358660226 Escorts service
Radhika Call Girls In Jaipur 9358660226 Escorts serviceRadhika Call Girls In Jaipur 9358660226 Escorts service
Radhika Call Girls In Jaipur 9358660226 Escorts servicerahul222jai
 

Recently uploaded (20)

➥🔝9953056974 🔝▻ Anand Vihar Call-girl in Women Seeking Men 🔝Delhi🔝 NCR
➥🔝9953056974 🔝▻ Anand Vihar Call-girl in Women Seeking Men 🔝Delhi🔝 NCR➥🔝9953056974 🔝▻ Anand Vihar Call-girl in Women Seeking Men 🔝Delhi🔝 NCR
➥🔝9953056974 🔝▻ Anand Vihar Call-girl in Women Seeking Men 🔝Delhi🔝 NCR
 
Guwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book now
Guwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book nowGuwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book now
Guwahati ❣️ Call Girl 97487*63073 Call Girls in Guwahati Escort service book now
 
9891550660 Call Girls In Noida Sector 62 Short 1500 Night 6000
9891550660 Call Girls In Noida Sector 62 Short 1500 Night 60009891550660 Call Girls In Noida Sector 62 Short 1500 Night 6000
9891550660 Call Girls In Noida Sector 62 Short 1500 Night 6000
 
BADDI CALL GIRL 92628/71154 BADDI CALL G
BADDI CALL GIRL 92628/71154 BADDI CALL GBADDI CALL GIRL 92628/71154 BADDI CALL G
BADDI CALL GIRL 92628/71154 BADDI CALL G
 
Call Girls | 😏💦 03274100048 | Call Girls Near Me
Call Girls | 😏💦 03274100048 | Call Girls Near MeCall Girls | 😏💦 03274100048 | Call Girls Near Me
Call Girls | 😏💦 03274100048 | Call Girls Near Me
 
+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...
+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...
+91-9310611641 Russian Call Girls In New Delhi Independent Russian Call Girls...
 
Indore ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book now
Indore  ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book nowIndore  ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book now
Indore ❣️Call Girl 97487*63073 Call Girls in Indore Escort service book now
 
Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...
Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...
Call Girls In {Connaught Place Delhi} 9667938988 IndianRussian High Profile E...
 
Mysore Call girl service 6289102337 Mysore escort service
Mysore Call girl service 6289102337 Mysore escort serviceMysore Call girl service 6289102337 Mysore escort service
Mysore Call girl service 6289102337 Mysore escort service
 
9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 37 (Delhi) Call Girl Service
 
Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03274100048 || 50+ Hot Sexy Girls Available 24/7
 
Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03274100048 ||Lahore Call Girl Available 24/7
 
CALL GIRLS 9999288940 women seeking men Locanto No Advance North Goa
CALL GIRLS 9999288940 women seeking men Locanto No Advance North GoaCALL GIRLS 9999288940 women seeking men Locanto No Advance North Goa
CALL GIRLS 9999288940 women seeking men Locanto No Advance North Goa
 
Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...
Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...
Call Girl Rohini ❤️7065000506 Pooja@ Rohini Call Girls Near Me ❤️♀️@ Sexy Cal...
 
Call Girls in Luxus Grand Hotel | 💋 03274100048
Call Girls in Luxus Grand Hotel | 💋 03274100048Call Girls in Luxus Grand Hotel | 💋 03274100048
Call Girls in Luxus Grand Hotel | 💋 03274100048
 
Best VIP Call Girls Noida Sector 24 Call Me: 8700611579
Best VIP Call Girls Noida Sector 24 Call Me: 8700611579Best VIP Call Girls Noida Sector 24 Call Me: 8700611579
Best VIP Call Girls Noida Sector 24 Call Me: 8700611579
 
Call Girls in Rawalpindi | 🍆💦 03280288848
Call Girls in Rawalpindi | 🍆💦 03280288848Call Girls in Rawalpindi | 🍆💦 03280288848
Call Girls in Rawalpindi | 🍆💦 03280288848
 
Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...
Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...
Call Now HIgh profile ☎9870417354|| Call Girls in Ghaziabad Escort Service De...
 
Radhika Call Girls In Jaipur 9358660226 Escorts service
Radhika Call Girls In Jaipur 9358660226 Escorts serviceRadhika Call Girls In Jaipur 9358660226 Escorts service
Radhika Call Girls In Jaipur 9358660226 Escorts service
 
9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.
9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.
9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.
 

Fiware docker container service multi tenant isolation and user defined networks and volumes

  • 1. FIWARE Docker Container Service (FDCS) Introduction Kenneth Nagin IBM nagin@il.ibm.com
  • 2. Multi-Tenant Swarm …. client client docker-cli docker-compose docker api, any tool based on docker-api Docker Container Service Keystone Keystone api external ip external ip NFS Docker Container Service (FDCS) Key-Value Storage
  • 3. Container Multi-Tenant Isolation and Multi-Tenant Name Scoping Tenant 1 Docker Container Service Keystone Tenant 2 Tenant 3 Multi-Tenant Swarm ……
  • 4. Multi-Tenant Isolation each tenant only sees its own containers Tenant 2: create, run and view containers Tenant 1: create, run, and view container Tenant 1: only see’s its containers
  • 5. Multi-Tenant Isolation each tenant can only manage its own containers Tenant 1: not allowed to remove container created by tenant 2 Tenant 1: remove’s its containers Tenant 1 and Tenant 2 view after rm attempts
  • 6. Multi-Tenant Name Scoping tenant containers with same name Tenant 2: uses same container Tenant 1: creates, runs, and views a named container
  • 7. Tenant members share resources Tenant members remove tenant 2 containers docker-user-2 and docker-user-3 are both members of docker-tenant-2 Tenant member attaches to running containers
  • 8. User defined overlay networks and nfs volumes Multi-Tenant Isolation and Multi-Tenant Name Scoping Tenant 1 Docker Container Service Keystone Tenant 2 Tenant 3 nfs Multi-Tenant Swarm ……
  • 9. > docker volume create –d nfs myvolume –name myvolu User defined overlay networks and nfs volumes > Docker network create –d overlay isolated_nw
  • 10. Docker-compose version 2 User defined networks and volume support
  • 11. docker-compose.yml: orion + mongodb v1: links and volume_from mongodata: image: mongo:3.2 volumes: - /data/db command: /bin/echo "Data-only for mongo" mongo: image: mongo:3.2 volumes_from: - mongodata command: --nojournal orion: image: fiware/orion links: - mongo ports: - "1026" command: -dbhost mongo
  • 12. docker-compose.yml: orion + mongodb v2: user defined overlay networks and NFS volumesversion: '2' networks: front: driver: "overlay" volumes: mongodata: # external: true driver: "nfs" services: mongo: image: mongo:3.2 command: --nojournal networks: - front volumes: - mongodata:/data/db orion: image: fiware/orion ports: - "1026" networks: - front command: -dbhost mongo
  • 13. Use docker compose to bring up service /orion$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES /orion$ docker volume ls DRIVER VOLUME NAME /orion$ docker network ls NETWORK ID NAME DRIVER /orion$ docker-compose up -d Creating network "orion_front" with driver "overlay" Creating volume "orion_mongodata" with nfs driver Creating orion_orion_1 Creating orion_mongo_1
  • 14. Service up and running on cluster ~/orion$ docker-compose ps Name Command State Ports --------------------------------------------------------------------------------------- orion_mongo_1 /entrypoint.sh --nojournal Up 27017/tcp orion_orion_1 /usr/bin/contextBroker -fg ... Up 130.206.119.32:32768->1026/tcp :~/orion$ docker ps CONTAINER ID IMAGE STATUS NAMES 40e14092eddf fiware/orion Up 8 minutes docker-host-3/orion_orion_1 59a647da904e mongo:3.2 Up 8 minutes docker-host-2/orion_mongo_1
  • 15. User defined volume and overlay network created /orion$ docker volume ls DRIVER VOLUME NAME nfs orion_mongodata nfs orion_mongodata /orion$ docker network ls NETWORK ID NAME DRIVER 1b651ad80f4b orion_front overlay
  • 16. /orion$ docker network inspect orion_front [ { "Name": "orion_front", "Id": "1b651ad80f4b9567626faba94accdf74aa77217d91258105525d56a2d5907426", "Scope": "global", "Driver": "overlay", "IPAM": { "Driver": "default", "Options": null, "Config": [ { "Subnet": "10.0.0.0/24", "Gateway": "10.0.0.1/24" } ] }, "Containers": { "c67fbd499135cf20aa301a5e9c9b8611330a64cf1ac5315ca47fde5b5a4ecf50": { "Name": "orion_orion_1", "EndpointID": "4d5111cb9303e61bf28f3a5209e788d2e33c9d3f1a5c29ebdfcce8a1503ddc9e", "MacAddress": "02:42:0a:00:00:02", "IPv4Address": "10.0.0.2/24", "IPv6Address": "" }, "cba077da484f4b5f9ff6b47721810e7660dce5979ed84636573626f28d97d533": { "Name": "orion_mongo_1", "EndpointID": "fde05d125ba6971218eff9b5092877f7c6e47b8baaa67d156be83957b43baeab", "MacAddress": "02:42:0a:00:00:03", "IPv4Address": "10.0.0.3/24", "IPv6Address": "" } }, "Options": {} } ]
  • 17. /orion$ port=$(docker-compose port orion 1026) /orion$ curl $port/v2/entities [] /orion$ curl ${port}/v2/entities -s -S --header 'Content- Type: application/json' -X POST -d @- <<EOF { "id": "Room2", "type": "Room", "temperature": { "value": 23, "type": "Number" }, "pressure": { "value": 720, "type": "Number" } } EOF /orion$ curl $port/v2/entities [{"id":"Room2","type":"Room","pressure":{"type":"Number" ,"value":720,"metadata":{}},"temperature":{"type":"Number ","value":23,"metadata":{}}}]
  • 18. Bring down the application ~/orion$ docker-compose down Stopping orion_mongo_1 ... done Stopping orion_orion_1 ... done Removing orion_mongo_1 ... done Removing orion_orion_1 ... done Removing network orion_front ~/orion$ docker network ls NETWORK ID NAME DRIVER ~/orion$ docker volume ls DRIVER VOLUME NAME nfs orion_mongodata nfs orion_mongodata
  • 19. Bring the app up again ~/orion$ docker-compose up -d Creating network "orion_front" with driver "overlay" Creating volume "orion_mongodata" with nfs driver Creating orion_orion_1 Creating orion_mongo_1 docker-user-1@rcc-hrl-kvg-558:~/orion$ docker network ls NETWORK ID NAME DRIVER d92818b2e5c0 orion_front overlay ~/orion$ port=$(docker-compose port orion 1026) ~/orion$ curl $port/v2/entities [{"id":"Room2","type":"Room","pressure":{"type":"Number","value":720.000000},"temperature":{"type":"Number
  • 20. FIWARE Docker Container Service (FDCS) online documentation •readthedocs: http://fiware-docker-container-service.readthedocs.org/en/latest/ •FIWARE catalogue: http://catalogue.fiware.org/enablers/docker/
  • 21. Docker-compose: Scale web app docker-compose scale web 5
  • 22. docker-compose.yml: web: image: nagin/dockercomposedemo_web:v2 volumes: - /code links: - redis expose: - "5000" redis: image: redis lb: image: tutum/haproxy links: - web ports: - "80" environment: - BACKEND_PORT=5000 - BALANCE=roundrobin
  • 23. docker-compose: bring up and access web app
  • 24. docker-compose: bring up and access web app
  • 25. docker-compose: bring up and access web app
  • 26. docker-compose: bring up and access web app
  • 27. Limitations • Not allowed to reference docker host file system with –volume <host>:<container> – common means of configuring a container or doing backups • Currently only experimental service running on FIWARE Lab (not for public)