AWS - Session 40 Apr 23, 2021
Elastic Container Service (ECS cluster)
1. Start your local RHEL8 machine
App -> OS (App/web server) -> Create image (AMI) -> launch on platform
Image -> AMI -> EC2
cpu/Ram
Hypervisor(Xen)
VM1 VM2 (Shared Resources)
or launch OS on dedicated host
containerization
Image -> Containers
Basic inf about Docker
---------------------
# docker info
# docker images
docker hun
# docker run -dit --name z1 vimal12/apache-webserver-php
# docker inspect z1
reviw the ip
# docker ps
# curl 182.17.0.2/index.php
if you want to connect from outside, it does not work
You have to expose
# docker run -dit --name z2 -p 8080:80 vimal13/apache-webserver-php
-p mean patting
# docker ps
# ifconfig enp0s3
get the IP
what we mean on above docker run command is that any request comes to <hostIP>:8080 is redirected to docker_ip:80
so, lets try this at your browser
http://192.168.10.20:8080
# docker run -dit --name z3 -p 8081:80 vimal13/apache-webserver-php
Every time you launch a new instance, you have to change the port number otherwise it will fail.
# netstat -tnlp | grep 8080
two program can't run on one single port
# docker run -dit --name z4 -p 8082 vimal13/apache-webserver-php
rather than specifying port number to every instance, docker folk came up with idea to assign the port automatically.
# docker run -dit --name z5 -P vimal13/apache-webserver.php
-P (Upper case) - publish
it will take random port and expose it.
# docker ps
# docker run -dit --name z6 -P vimal13/apache-webserver.php
# docker ps
# docker run -dit --name z2 -P vimal13/apache-webserver-php
Lets talk about ECS
we have
HW
- SYSTEM - RHEL8 -> Docker Engine -> Containers
AWS will provide the HW (System)
EC2 will provide RAM/CPU
Women glow differently when they are treated right and loved properly.
Subscribe to:
Post Comments (Atom)
Git branch show detached HEAD
Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03) 00 2. Run re-set hard $ git reset --hard 3. ...
-
snmpconfig command allow you to managge snmpv1/v3 agent configuration on SAN switch. Event trap level is mapped with event severity level....
-
Firmware upgrade on HPE SuperDom Flex 280 - prerequisites tasks a. Set up repo b. Upload firmware to your webserver 1. For foundation so...
-
Disabling the Telnet protocol on Brocade SAN switches By default, telnet is enabled on Brocade SAN switches. As part of security hardening o...
No comments:
Post a Comment