Docker Tutorial | What is inspect in docker? | How do I inspect the Docker file system?

Опубликовано: 27 Февраль 2025
на канале: VK Seth - AWS Devops
302
8

Below topic explained

Docker tutorial
What is inspect in docker?
How do I inspect the Docker file system?
How do I inspect a docker log?
How can I get details of a container?

=============

#docker
#dockerarchitecture
#dockertraining
#dockercontainer
#dockertutorial
#container
#dockervideos
#dockerimage
#Docker tutorial
#Docker Troubleshooting

#dockerhub
#dockerimage
#dockervideos
#dockercontainer
#docker

Docker Tutorial - Docker Inspect Command explained


In this video I will explain how to work with Docker Inspect Command
See Topic Explained for more information


Docker inspect - provides detailed information on constructs controlled by Docker. By default, docker inspect will render results in a JSON array

Docker - Docker is an open platform for developing, shipping, and running applications


This Video is Chapter 9 in the docker series


Below Topics explained

Docker Inspect Command explained in Detail
How to Get IP address of container
How to get Image Name from Docker Inspect command
How to see log path
How to get all the ports binding From Docker Inspect command



Steps

docker inspect

docker pull nextcloud
docker container run -itd -p 8080:80 nextcloud

By default docker inspect returns in json format

Get an instance’s IP address
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $INSTANCE_ID

Get an instance’s log path
docker inspect --format='{{.LogPath}}' $INSTANCE_ID

Get an instance’s image name
docker inspect --format='{{.Config.Image}}' $INSTANCE_ID

List all port bindings
docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} {{(index $conf 0).HostPort}} {{end}}' $INSTANCE_ID

Get a subsection in JSON format
docker inspect --format='{{json .Config}}' $INSTANCE_ID



============================
Subscribe my channel -    / @devopstutorial  
==========================

THINGS YOU NEED TO KNOW

Most Recent Video related to shell scripting -    • Linux SHELL Scripting Tutorial | Lear...  

============================================
Playlists


AWS-CLI playlist -    • AWS-CLI tutorial for Beginner  

Terraform playlist -    • Terraform Tutorial for beginner  

Python-boto3-AWS playlist -    • Python-Boto3-AWS  

Docker playlist -    • Docker Playlist for Beginners: Your U...  

AWS-EC2 playlist -    • AWS-EC2  

AWS Tutorial playlist -    • AWS Tutorial for Beginner  

Devops with AWS Playlist -    • Devops Tutorial  

AWS IAM Playlist -    • AWS IAM Policy  

AWS-Lambda Playlist -    • AWS-Lambda  

Python playlist -    • Python  

Git playlist -    • Git Tutorial  

===============================================

Thanks for watching!
If you like my content, please subscribe.

   / @devopstutorial  

============================================


WHO AMI I : I am Vicky Seth, a DEVOPS-AWS-CLOUD Engineer, I use my technical background to make videos about technology that help you to grow.
Email - [email protected]