devaiah37 / my_first_project

0 stars 0 forks source link

MyApp.java O/P , Docker container running and Docker images #1

Open devaiah37 opened 1 year ago

devaiah37 commented 1 year ago

DOCKER IMAGES DockerImages

DOCKER CONTAINER RUNNING

dockerRun

MyApp.java OUTPUT AppOutput

1)What is the prerequisite for another machine to run your application if you provide it the docker image ? To run a Docker image on another machine, the machine must have the Docker Engine installed, which is available for different operating systems such as Windows, macOS, and Linux. The machine should also have enough resources like CPU, memory, and disk space to run the container. The resource requirements depend on the application and its dependencies.

What is the difference between a virtual machine and a docker container ? A virtual machine is a software version of a physical machine that operates independently and has its own OS, kernel, drivers, and libraries. It requires a hypervisor to emulate the underlying hardware and runs in isolation from the host machine. However, a Docker container shares the kernel and resources of the host OS, but provides a separate environment for running applications. It uses fewer resources than a virtual machine and can be started and stopped more quickly.

devaiah37 commented 1 year ago

:)