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

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

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

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

Image2
root@ip-172-31-28-155:/home/ubuntu# docker run -itd --name rajupycontainer python
a0ae7dc373c4456a31fa993b84656589f1e67a8701fe8fcd17cd63604c715cf8
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.
>>> 

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


Image5
root@ip-172-31-28-155:/home/ubuntu# docker run -itd --name rajualpinec alpine
f9b774b8c4d795ac0db94cf26a55b2da16a849d3cccda33a30c1b21d7dd3c1ac
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
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
v3.14.1-104-g035eb230f7 [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]
v3.14.2-1-g0312522127 [https://dl-cdn.alpinelinux.org/alpine/v3.14/community]
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

Code language: PHP (php)