C-D-theory

Containerization Class – 6 February

Task: Containerizing a C Application Using Docker


Objective

To build and execute a C application inside a Docker container.


Description

In this experiment, a simple C program was written and compiled. A Dockerfile was created to build an image and run the compiled program inside a container.


Output Screenshots

Screenshot 1: C Program Source Code

Shows the C source file used in the project.

C Program


Screenshot 2: Compilation Process

Displays compilation of the C program.

Compilation


Screenshot 3: Docker Image Build

Shows building of Docker image for the C program.

Docker Build


Screenshot 4: Program Execution

Shows execution of the C application inside the container.

Execution


Observation


Conclusion

The C application was successfully containerized using Docker.

This experiment improved understanding of building native applications inside containers.