Silly- Docker assignments

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

1.What is Docker – in 2 lines

Ans: A platform for building, running and shipping applications.

2. What is Container – in 3 lines

Ans: A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools , system libraries and settings.

3. Top 10 commands with 1 example of using docker container

docker create –name=container_name image_name-> create Container
docker start container_name -> start Container
docker stop container_name -> stop Container
docker restart container_name -> restart Container
docker pause container_name -> pause Container
docker kill container_name -> kill Container
docker unpause container_name -> unpause Container
docker rm container_name -> remove Container
docker run -itd –name=container_name image_name -> create start Container
docker rename container_name new_container_name -> rename the container
docker ps -a -> list all the running containers
docker exec -it container_name /bin/bash -> go inside the container
docker inspect container_name -> inspect the container
4. 5 commands with 1 example of using docker image

docker images -> list of images
docker pull image_name -> pull the image from registry
docker rmi image_name -> remove the image
docker save -i image_name.tar image_name -> save the image as tar
docker load -o image_name.tar -> load the image
docker commit -m”message” image_name
5. 5 commands with 1 example of using docker registry

docker login -> login to registery
docker logout -> logout to registery
docker push image_name repositoryName -> push the image to registery
docker tag image_name new_image_name -> rename the image

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x