0% found this document useful (0 votes)
2 views

Creating a Programming Environment on Docker Conatiner

Uploaded by

viji76760
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Creating a Programming Environment on Docker Conatiner

Uploaded by

viji76760
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Course: cloud computing lab Course-code: 22EBCC301

Creating a programming environment in a Docker Container.


Note: First 4 Steps are common for all images.
Step1: First create VM in Proxmox-server.
Step2: Using VM IP address access the Putty-software.

Step3: Login the putty software using VM’s username and password.

Step4: Change the directory to root directory .

KLE Technological University Bachelor of Computer Applications


Course: cloud computing lab Course-code: 22EBCC301

Installing Docker on Ubuntu 22.04


Docker installation 7 Steps:
Step 1: Update the Package Repository

Step 2: Install Prerequisite Packages - Run the following command to allow Ubuntu to access
the Docker repositories over HTTPS

Step 3: Add GPG Key - A GPG key verifies the authenticity of a software package. Add the
Docker repository GPG key to your system by running:

Step 4: Add Docker Repository

Step 5: Specify Installation Source

Step 6: Install Docker

Step 7: Check Docker Status & Some Docker commands

For Python Image:


Step 9: Pull Docker Python Image

Step 10: Creating file for python.

KLE Technological University Bachelor of Computer Applications


Course: cloud computing lab Course-code: 22EBCC301

Step11: first click I button to go insert mode. Then write the code.

Step12: Run the python program.

Step13: To display the pulled images.

Step14: To display the Docker Containers.

For C Programming Image:


Step1:Pull Docker C program image.

Step2:Create a file for C program.

Step3:first click I button to go insert mode. Then write the code.

KLE Technological University Bachelor of Computer Applications


Course: cloud computing lab Course-code: 22EBCC301

Step4: Run the C program.

For HTM Image:


Step1: Pull Docker HTML image. Create a apache container for web browser

Step2: First Redirect folder to html.

Step3: Create html file click I and insert the code.

Step4:
Run the program using web browser, Enter Ip address / Your filename.

KLE Technological University Bachelor of Computer Applications


Course: cloud computing lab Course-code: 22EBCC301

For Httpd image:


Step1: First Pull the Httpd latest image. Create a apache container for web browser

Step2: Run your application in web-browser, using http/<server-ip-Address>:8081

Extra commands:

Display docker images.

Display docker containers.

KLE Technological University Bachelor of Computer Applications

You might also like