RUN CONTAINERISED APPLICATIONS USING DOCKER

WHAT EXACTLY IS DOCKER?

  • Agility
  • Consistent and Isolated Environment
  • Cost-effectiveness with Fast Deployment
  • Repeatability and Automation
  • Flexibility
  • Test, Roll Back, Scale and Deploy

INSTALLATION OF DOCKER ON RHEL8 SYSTEM

[docker]
description="Docker repository for installing docker"
baseurl=https://download.docker.com/linux/centos/7/x86_64/stable
gpgcheck=0
yum repolist
yum install docker-ce --nobest -y
systemctl start docker
systemctl enable docker

RUN AN HTTPD WEBSERVER INSIDE DOCKER CONTAINER

docker pull centos:latest
firewall-cmd --zone=public --add-masquerade --permanentfirewall-cmd --zone=public --add-port=80/tcpfirewall-cmd --zone=public --add-port=443/tcpfirewall-cmd --reloadsystemctl restart docker
docker run -it --name webos centos:latest
yum install httpd -y
/usr/sbin/httpd
yum install net-tools -y

SETUP PYTHON INTERPRETER INSIDE DOCKER CONTAINER

yum install python3 -y

And that’s all with some containerization as for now!

Thank you :)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store