Junior — Middle
How can details about a Docker container be obtained via command line?
sobes.tech AI
Answer from AI
To obtain detailed information about a Docker container, use the command:
docker inspect <container_id_or_name>
This command outputs a JSON with detailed information about the container: network settings, volumes, environment variables, status, and much more.
If you need a brief overview, you can use:
docker ps -a
to see a list of all containers with their status and basic data.