React Native Training
React Native Training
[email protected] [email protected]
Course Overview
● Namespaces
● Control groups
● Union file systems
● Container format
Namespaces Provides the isolated workspace
called the container.
Allows Docker Engine to share
available hardware resources to
Control groups containers and optionally enforce
limits and constraints. For example,
you can limit the memory available
to a specific container.
Are file systems that operate by
creating layers, making them very
UnionFS lightweight and fast. Docker Engine
uses UnionFS to provide the
building blocks for containers.
Working with images
1. Build your own
image
2. Run locally
3. Push image to a
registry
4. Deploy to the
cloud
Build your own image
1. Download
https://github.com/carvajalluis/angular-architecture-pattern
s
2. Create Dockerfile
3. Create even better Dockerfile (Layers and layers)
2. Create DockerFile, then...
[email protected] [email protected]
Docker Services
● [email protected]:carvajalluis/angular-architecture-patterns.git
● cd 2-3
● docker build -t servicenredis .
● docker tag servicenredis <user>/<repo>:<version>
● docker-compose up -d
● docker service ls
Docker Swarm
● Launch Hyper-V Manager
● Click on Virtual Switch Manager in the right-hand menu
● Create Virtual Switch of type External
● Give it a name like customSwitch, and check the box to share your host
machine’s active network adapter
● docker-machine create -d hyperv --hyperv-virtual-switch "customSwitch"
nodeN
● docker-machine ssh node1 "docker swarm init"
● docker swarm join-token worker/manager
● docker-machine ssh nodeN “ docker swarm join --token <token> <myvm
ip>:<port>”
● docker ssh node1 “docker node ls”
● docker-machine env node1
● docker stack deploy -c docker-compose.yml dockerlab
● Launch Hyper-V Manager
● Click on Virtual Switch Manager in the right-hand menu
● Create Virtual Switch of type External
● Give it a name like customSwitch, and check the box to share your host
machine’s active network adapter
● docker-machine create -d hyperv --hyperv-virtual-switch "customSwitch"
nodeN
● docker-machine ssh node1 "docker swarm init"
● docker swarm join-token worker/manager
● docker-machine ssh nodeN “ docker swarm join --token <token> <myvm
ip>:<port>”
● docker ssh node1 “docker node ls”
● docker-machine env node1