Spaces:
Sleeping
Sleeping
import streamlit as st | |
def main(): | |
st.title("Learning Material: Docker for Computer Science Students") | |
with st.expander("About the Author"): | |
st.markdown(""" | |
(c) 2024. Louie F. Cervantes, M.Eng. (Information Engineering) | |
""") | |
st.markdown(""" | |
## **Introduction to Docker** | |
Docker is a platform that allows developers to build, ship, and run applications in isolated environments called containers. Containers ensure that applications run consistently regardless of where they are deployed. This makes Docker a powerful tool for developers, especially in environments where software needs to run reliably across different systems. | |
### **Key Concepts** | |
1. **Containers:** Lightweight, portable units that include an application and its dependencies. | |
2. **Images:** Read-only templates used to create containers. | |
3. **Docker Engine:** The runtime that powers Docker containers. | |
4. **Docker Hub:** A cloud-based registry where you can find and share container images. | |
5. **Docker Compose:** A tool to define and manage multi-container applications. | |
--- | |
## **Installing Docker on Windows** | |
### **Prerequisites** | |
1. Windows 10 or higher (Pro, Enterprise, or Education editions recommended). | |
2. Enable the Windows Subsystem for Linux (WSL) feature. | |
### **Installation Steps** | |
1. Download and install Docker Desktop from the [Docker official website](https://www.docker.com/products/docker-desktop/). | |
2. Follow the installation wizard to enable WSL 2 and set it as the default backend. | |
3. After installation, verify the setup by running the following command in a terminal: | |
```bash | |
docker --version | |
""") | |
if __name__ == "__main__": | |
main() |