Professional Documents
Culture Documents
Ayush PS-4 4th Practical
Ayush PS-4 4th Practical
Aim: To pull the image from the docker and run it on the container.
Learning objective: To make students well versed in how to use Subnet , route tables on
AWS.
Theory:
1. Docker
2. Node
Running Node.js applications in Docker provides developers with a flexible and scalable
environment for building and deploying web applications. Docker allows for the
encapsulation of Node.js applications, along with their dependencies, into lightweight,
portable containers. This approach ensures consistent execution environments across
development, testing, and production environments, mitigating potential compatibility
issues. Leveraging Docker's containerization technology, developers can easily package
Node.js applications, manage dependencies using package.json, and define the runtime
environment using Dockerfiles. This enables streamlined development workflows,
simplified deployment processes, and improved resource utilization, making Node.js in
Docker a preferred choice for modern application development and deployment.
3. PHP
Deploying PHP applications in Docker provides developers with a robust and portable
platform for building and managing web applications. Docker allows for the
encapsulation of PHP applications and their dependencies into lightweight, self-contained
containers, ensuring consistency across different environments.
Step 4: Now write docker run-it node /bin/bash and run it.
Step 5: Write docker run php to create a container of the image pulled just now.