Sample to execute an application in a container. This is a basic example to understand the following.
- Write a docker file.
- Build a docker image.
- Run a container using the docker image.
- Build a docker image
sudo ./docker-build.sh
- Run the container
sudo docker run first:latest
sudo docker pull pratikmeher/practice:first
then,
sudo docker run pratikmeher/practice:first