List of Top 5 docker images from and create a running container of it and try to use it.

Image 1: Ran golang image and executed the image to get the go version.

Image2:Ran python image and executed the container

Image3:Ran openjdk image and executed the container for java version

Image4:Searched for some fun image and got cat image

(docker run –rm -it wernight/funbox nyancat)

Image5: Create a container for alpine image and excuted to add curl into the container

root@ip-172-31-28-155:/home/ubuntu# docker run -itd --name rajucontainer golang
root@ip-172-31-28-155:/home/ubuntu# docker exec -it rajucontainer /bin/sh
# go version
go version go1.17 linux/amd64

root@ip-172-31-28-155:/home/ubuntu# docker run -itd --name rajupycontainer python
root@ip-172-31-28-155:/home/ubuntu# docker exec -it a0ae7dc373c4456a31fa993b84656589f1e67a8701fe8fcd17cd63604c715cf8 /bin/bash
root@a0ae7dc373c4:/# python version
python: can't open file '//version': [Errno 2] No such file or directory
root@a0ae7dc373c4:/# python
Python 3.9.6 (default, Aug 17 2021, 15:37:33)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.

root@ip-172-31-28-155:/home/ubuntu# docker run -itd --name rajujavacnew1 openjdk:latest
root@ip-172-31-28-155:/home/ubuntu# docker ps | grep raju
f4be5b57b8dc   openjdk:latest   "jshell"                 3 seconds ago    Up 2 seconds                                                          rajujavacnew1

root@ip-172-31-28-155:/home/ubuntu# docker run -itd --name rajualpinec alpine
root@ip-172-31-28-155:/home/ubuntu# docker exec -it f9b774b8c4d795ac0db94cf26a55b2da16a849d3cccda33a30c1b21d7dd3c1ac
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.

Usage:  docker exec [OPTIONS] CONTAINER COMMAND [ARG...]

Run a command in a running container
root@ip-172-31-28-155:/home/ubuntu# docker exec -it f9b774b8c4d795ac0db94cf26a55b2da16a849d3cccda33a30c1b21d7dd3c1ac /bin/sh
/ # apk update && apk add curl
v3.14.1-104-g035eb230f7 []
v3.14.2-1-g0312522127 []
OK: 14935 distinct packages available
(1/5) Installing ca-certificates (20191127-r5)
(2/5) Installing brotli-libs (1.0.9-r5)
(3/5) Installing nghttp2-libs (1.43.0-r0)
(4/5) Installing libcurl (7.78.0-r0)
(5/5) Installing curl (7.78.0-r0)
Executing busybox-1.33.1-r3.trigger
Executing ca-certificates-20191127-r5.trigger
OK: 8 MiB in 19 packages