C-D-theory

Containerization Class – 4 February

Task: Exposing Docker API to External World


Objective

To understand how Docker API can be exposed and accessed externally.


https://upessocs.github.io/#dir=/Lectures/Containerization%20and%20DevOps/Theory/&file=015%20Docker%20API%20exposing%20to%20external%20world.md


Description

In this experiment, Docker API was configured to allow external access. Different API endpoints were tested using browser URLs to retrieve container data.


Output Screenshots

Screenshot 1: Docker API Documentation

Shows the official documentation explaining API exposure.

Docker API Documentation


Screenshot 2: Enabling API Access

Shows configuration for enabling external access.

Enable API Access


Screenshot 3: Browser Access

Shows Docker API accessed through the browser.

Browser Access


Screenshot 4: JSON Output

Displays container information in JSON format.

JSON Output


Screenshot 5: Modified URL

Shows modified API URL for fetching container data.

Modified URL


Screenshot 6: Final Output

Shows successful retrieval of container details.

Final Output


Observation


Conclusion

Docker API exposure and external access were implemented successfully.

This experiment helped in understanding how Docker can communicate with external applications using REST APIs.